获取0-4整数

//获取0-4整数
var randomLoc = Math.floor(Math.random() * 5);

 

posted @ 2018-07-10 22:15  道高一尺  阅读(163)  评论(0编辑  收藏  举报