jquery让DIV 随机排列
点评:仿站用到DIV随机的排序,然后就写了个jq<script>
$(function () {
$(".j007com div").each(function(){
if(parseInt(Math.random()*2)==0){
$(this).prependTo($
$(function () {
$(".j007com div").each(function(){
if(parseInt(Math.random()*2)==0){
$(this).prependTo($
仿站用到DIV随机的排序,然后就写了个jq
<script>
$(function () {
$(".j007com div").each(function(){
if(parseInt(Math.random()*2)==0){
$(this).prependTo($(this).parent());
}
});
});
</script>
相关js教程:
最新js教程: