var arr = [1, 5, 8, 9, 6, 3];
        var arr2 = [];
        while (arr.length) {
            var temp = arr.pop();
            arr2.push(temp)
        }
        alert(arr2)

 

相关文章:

  • 2022-02-05
  • 2022-01-06
  • 2022-12-23
  • 2021-06-04
  • 2022-01-02
猜你喜欢
  • 2022-12-23
  • 2021-08-08
  • 2021-06-07
  • 2021-09-30
  • 2022-01-13
  • 2022-12-23
  • 2021-10-31
相关资源
相似解决方案