📜  parseint 数组 javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:47.643000             🧑  作者: Mango

代码示例1
var arr = ['1','2','3'];
arr = arr.map(x => parseInt(x));

console.log(arr);
//Array(3) [ 1, 2, 3 ]