IE8 discovered a strange thing:
parseInt('01') //1 parseInt('02') //2 parseInt('03') //3 /*...*/ parseInt('07') //7 parseInt('08') //0 !!! parseIntr('09') //9 ok
Can someone clarify?
Use radix
parseInt('08', 10) //8
Source: https://habr.com/ru/post/954695/More articles:Auditd - auditctl rule to monitor only dir (not all sub files and files, etc.) - linuxInfix for postfix not working as expected - java-scrollRangeToVisible: doesn't consider keyboard size in iOS 7 - ios2 itemprops for 2 colors of the same product? - schema.orgCreate a digitally signed pdf with nodejs - node.jsSorting a 2-dimensional array in ANSI C with qsort () - cI can not understand some sentences in C99 - cUnsatisfiedLinkError: the library is loading, but I still get the error message - javaCan Microdata be applied to any type of HTML element? - htmlLess detailed debugging screen in Catalyst? - perlAll Articles