extjs error

internet explorer cannot open the internet site operation aborted

This error is reported in IE 7 and below,

(Chinese error: "Internet Explorer cannot open internet sites, has terminated the operation")

And the page cannot be opened.

But in chrome and firefox already IE 8 (and above) are normal.

 

There are basically two possible reasons:

1. The page tags do not match, for example, <div> has an opening tag, but lacks the closing tag of </div>

2. Append child elements to the page element before the page is loaded.

A typical example in Ext js is not to create components in Ext.onReady.

 

Expected identifier,String or number

 

[javascript]  view plain copy  
 
  1. Ext.create('Ext.window.Window', {  
  2.     title: 'Test Window',  
  3.     height: 580,  
  4.     width: 600,  
  5.     layout: 'fit',  
  6.     html: 'This is Test Window!',  
  7. }).show();  


The above paragraph is just not normal in IE, and not normal.

 

Just delete the comma at the end of the html configuration item.

It seems that IE and syntax validation are stricter.

 

console

Always like to use when developing

console.log()

way to print some information in the console, but there is no such object in the IE browser.

So you need to make a non-empty judgment before using the console

if(typeof(console)!="undefined"&&console!=null)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326509252&siteId=291194637