Arr1.sort(function(){return Math.random()>0.5?-1:1;}); 转载于:https://www.cnblogs.com/sunhk/p/4694373.html