JS数组随机排序

随机排序 let arr = [1,2,3,5,6,12,31,4]; arr.sort(function(){return Math.random() - 0.5}); 注意:此处排序会改变原数组web
相关文章
相关标签/搜索