最近项目中遇到了,处理数组数据问题:

        var newStrs=[1,2,3,4];
               alert(Math.min.apply(null,newStrs));  //最小值

      alert(Math.max.apply(null,newStrs));  //最大值

相关文章:

  • 2021-10-14
  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
相关资源
相似解决方案