const shuffle = (arr) => {
return arr.sort(() => {
return Math.random() > 0.5 ? 1 : -1
})
}
打乱一个数组
猜你喜欢
转载自blog.csdn.net/qiaoqiaohong/article/details/123520433
今日推荐
周排行