Today Min. dom raises an interesting question: when using the parseint function in Javascript, parseint ("08") or parseint ("09") returns 0, and parseint ("01 ")... parseint ("07") is correct and hard to understand at the beginning. Later, we found that the cause of this problem was that when there was "0" in front of it, the debugger of JavaScript considers this to be an octal number, while "08" and "09" are not legal Octal numbers, which leads to this problem, but parsefloat does not.
In fact, the parseint method has an optional parameter to represent the number hexadecimal, so this should not be a bug, but we do not notice such details at ordinary times. The solution is very simple. You can use parseint ("08", 10) or parseint ("09", 10) to notify the javascript interpreter to use Decimal for parsing.
ReferenceArticle: Http://www.breakingpar.com/bkp/home.nsf/Doc? Opennavigator & U = 87256b280015193f87256c85006a6604