原文 快速的让一个数组乱序 直接上代码 var arr1 = [1,2,3,4,5,6,7,8,9] arr1.sort(()=> Math.random() - 0.5) console.log(arr1)