Javascript-ie8 of the parseint () method

Source: Internet
Author: User
The company's test little sister came to me and said, the dropdown box 9th is always unable to correctly submit, I thought the hell.   parseint () will start the ' 0 ' number with 8 to parse, when there are more than 7 of the number when the 10 binary to parse. parseint Syntax definition: Radix is an optional parameter, default is 10 binary.
parseint (String,radix);
08, 92 digits default as 8 binary conversion, did not succeed so return 0.   , however, IE8 is very dedicated to 8 in order to parse, regardless of 10 of the experience of the system. Solution: Specify a binary parameter
parseint (' 08 ', 10);

Javascript-ie8 of the parseint () method

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.