1.['1', '2', '3'].map(parseInt) let arr = ['1', '2', '3'] let res1 = arr.map(Number) // [ 1, 2, 3 ] 正确做法1 let res2 = arr.map(item => item * 1) //[ 1, 2, 3 ] 正确做法2 let res = arr.map(parseInt) //[ 1, NaN, NaN ] //实际上等于下面代码 arr.map((item, index) => { r…