摘要:
/*num 要产生多少个随机数from 产生随机数的最小值to 产生随机数的最大值*/function createRandom(num ,from ,to ){var arr=[];for(var i=from;i<=to;i++)arr.push(i);arr.sort(function(){r... 阅读全文
摘要:
js这样写:document.getElementById("pp").getElementsByTagName("a").length;jquery这样写:$("#pp a").index()+1; 阅读全文