js 把字符串数组转换为数字数组 例子 : ['1','2','3']=>[1,2,3] let strArr=['1','2','3'] let numArr = strArr.map(Number) console.log(numArr) //[1,2,3]