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) ^_^