var arr = [1,2,3,4,5,6,7,8,9,],

  r = arr.sort(function(){

  return Math.random() > .5 ? -1:1;

});

alert(r);

相关文章:

  • 2022-01-06
  • 2022-02-09
  • 2022-12-23
  • 2021-07-05
  • 2021-11-11
  • 2022-02-12
  • 2022-12-23
猜你喜欢
  • 2022-01-12
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-12-10
  • 2022-01-03
相关资源
相似解决方案