javascript默认将数字类型的“002,00123”,作为整数,去掉前面的0 .
1.javascript默认将数字类型的“002,00123”,作为整数,去掉前面的0

<script type="text/javascript">
       //javascript默认将数字类型的“002,00123”,作为整数,去掉前面的0
      var otherArray = new Array(001,002,"003","004","00abc");

      
      for(var j = 0;j<otherArray.length;j++)
      {
     
               alert(otherArray[j]);
      }
     
        
    </script>

 

相关文章:

  • 2022-12-23
  • 2021-06-01
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-11
  • 2021-05-19
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2022-01-21
相关资源
相似解决方案