Resolve ExtJS Browser compatibility issues that are not displayed in IE in Chrome or Firefox _extjs

Source: Internet
Author: User
With ExtJS development for nearly a year, but also encountered a lot of strange problems, the most impressive to be extjs in IE to show the problem. Because most of the development process with chrome to debug, rarely in IE debugging (now both need to be balanced), led to the last page in IE can not load normally, then that embarrassed Ah, see IE reported the wrong, I want to cry, even the wrong stack of information do not (this point, ie do not really good), do not know. Tried n many methods, and finally found that the cause of this problem (more than 90% of the possibility) is a JS array of an English comma ', ', and this is not a problem in Chrome and Firefox, as shown in the following code:
Copy Code code as follows:

var win = ext.create (' Ext.window.Window ', {
Some code omitted here
//........
items:[
{
Title: ' Hello ',
WIDTH:100,
height:100
},{
Title: ' World ',
WIDTH:100,
height:100
},{
Title: ' Foo ',
WIDTH:100,
height:100
},//Note the English comma here, there is no error in Chrome and Firefox
]
Some code omitted here
//........
})

This is a difference in the browser array processing. When you write code, you should pay attention to, if there are similar problems can try to look, may be able to solve, I have met three times, are the problem. (end) ^_^

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.