🌈 搜索
📅  最后修改于: 2022-03-11 15:02:47.643000             🧑  作者: Mango
var arr = ['1','2','3']; arr = arr.map(x => parseInt(x)); console.log(arr); //Array(3) [ 1, 2, 3 ]