JavaScript reports a "missing identifier, string, or number" problem rendition in IE8:

Source: Internet
Author: User

Development and testing using Chrome browser More, customer feedback a page can't open, their own with chrome open everything normal, open with IE8, sure enough the page shows the card is there, and reported "missing identifier, string or number." Check out the errors reported in the knockout.

Encounter this problem, direct Google check IE8 this error, get the most results is IE6, IE7, JSON if the last one more comma, this exception will occur. Go back and check your code for questions like this. The comma did not find this writing, the semicolon is a few endings did not write, and changed. Even copy the code to http://jsfiddle.net/, using Jshint authentication to ensure validation passes. Re-test, or this anomaly.
No way, can only use knockout version of Dubug, breakpoint a debugging, this exception occurs very rich information returned:

Error in the following notation

<tr data-bind= "attr: {class: $root. Gettreegridclass ($data)}" >

Class This has a problem in IE, modify the following wording to add "

<tr data-bind= "attr: {' class ': $root. Gettreegridclass ($data)}" >

JavaScript reports a "missing identifier, string, or number" problem rendition in IE8:

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.