console.log([ '5', '9', '7' ].map(parseInt)) 告诉我 [5, NaN, NaN]console.log([ '5', '9', '7' ].map(function(element){ return parseInt(element)}))告诉我 [5, 9, 7]但为什么 ?^^'
添加回答
举报
0/150
提交
取消