parseInt('5aab4') //5
// I expect the output is NaN.由于parseInt,我的邏輯失敗了。我假設當輸入包含字母時parseInt總是返回NaN?
有字母時parseInt不返回NaN
手掌心
2021-04-29 09:10:17