7
可能重复:
JavaScript function parseInt() doesn't parse numbers with leading 0 correctly为什么parseInt函数( “08”)= 0,parseInt函数( “07”)= 7
在JS解析的时候奇怪的问题出现。
parseInt("08")
//The result is: 0
parseInt("07")
//The result is: 7
这是怎么发生的?
我没有带了这个问题! – Amir
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/parseInt – BalusC