console.log([ '5', '9', '7' ].map(parseInt)) 告訴我 [5, NaN, NaN]console.log([ '5', '9', '7' ].map(function(element){ return parseInt(element)}))告訴我 [5, 9, 7]但為什么 ?^^'
我不明白這個 map() 行為
繁星點點滴滴
2021-11-12 17:40:17