clo*_*ure 15
for (var i = 0, ar = []; i < 80; i++) {
ar[i] = i;
}
// randomize the array
ar.sort(function () {
return Math.random() - 0.5;
});
Run Code Online (Sandbox Code Playgroud)
//你有随机数字0到79的数组ar.校验
console.log(ar);
//取出这样的元素
ar.pop()
| 归档时间: |
|
| 查看次数: |
10144 次 |
| 最近记录: |