摘要:
1.使用内置的随机数发生方法:Math.random(); //该方法产生一个0到1之间的浮点数。Math.floor(Math.random()*10+1); //1-10Math.floor(Math.random()*24);//0-23 2.基于时间,亦可以产生随机数:var now=new... 阅读全文
posted @ 2013-01-28 10:17
cuibq
阅读(165)
评论(0)
推荐(0)
浙公网安备 33010602011771号