js 随机指定范围数

Math.floor(Math.random()*5)

posted @ 2015-07-22 11:04  sunhaikuo  阅读(142)  评论(0)    收藏  举报