let arr = ["21","122","3323"]
arr = arr.map(Number)
console.log(arr)
js改变数组里的数据类型
最新推荐文章于 2023-03-16 16:02:19 发布
let arr = ["21","122","3323"]
arr = arr.map(Number)
console.log(arr)