let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, ]
let newArr = arr.sort(function () {
return Math.random() - 0.5
})
随机排序数组
最新推荐文章于 2022-11-26 19:59:30 发布
let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, ]
let newArr = arr.sort(function () {
return Math.random() - 0.5
})