題目描述為什么 parseInt('12', 2) 輸出結果是 1 ?思路二進制數12不存在, 結果不應該是NaN嗎 ?相關代碼console.log(parseInt("12", 2)); // 1
js parseInt類型轉換問題
慕尼黑8549860
2019-01-24 10:18:19