用法 var arr = [1,3,5,2,4,6]; var index = Math.floor(Math.random() * arr.length); 应用实例 取随机数 取随机颜色 ... 相关文章: