//sort 打乱数组顺序 // https://mp.weixin.qq.com/s/o1UQa14ZFCii3U7Mqom-4A let arr=[1,2,3,4,5,6,7,8,9] arr=arr.sort(()=>0.5-Math.random()) console.log(arr)