['1','2','3'].map(function(item) {

  return +item;

});

//[1,2,3]

  或者

["1", "2"].map(Number)

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2021-12-18
  • 2021-11-07
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案