摘要: /*num 要产生多少个随机数from 产生随机数的最小值to 产生随机数的最大值*/function createRandom(num ,from ,to ){var arr=[];for(var i=from;i<=to;i++)arr.push(i);arr.sort(function(){r... 阅读全文
posted @ 2015-01-14 18:45 我去不科学的-ef 阅读(423) 评论(0) 推荐(0) 编辑
摘要: js这样写:document.getElementById("pp").getElementsByTagName("a").length;jquery这样写:$("#pp a").index()+1; 阅读全文
posted @ 2015-01-14 17:51 我去不科学的-ef 阅读(162) 评论(0) 推荐(0) 编辑