乱序 排序

35 阅读1分钟
function randomSort(a, b) { 
  return Math.random() > 0.5 ? -1 : 1; 
}