[Ext JS 4] browser compatibility

Source: Internet
Author: User

Preface it is reasonable to say that Ext js development should not be compatible with browsers, because Ext js itself considers the compatibility of various browsers. This article is not so much about the compatibility of Ext js development as about the compatibility of web development. Internet explorer cannot open the internet site operation aborted this error is reported in IE 7 and earlier versions. (Chinese error: "Internet Explorer cannot open internet site, operation terminated") the page cannot be opened. However, chrome and firefox are already normal in IE 8 (and later versions. There are basically two reasons: 1. the page tag does not match. For example, <div> has a start tag, but the end tag of </div> is missing. 2. append child elements to the page elements before the page load is complete. A typical example of Ext js is not to create components in Ext. onReady.

Expected identifier, String or number [javascript] view plaincopyExt. create ('ext. window. window ', {title: 'test Window', height: 580, width: 600, layout: 'fit', html: 'This is Test Window! ',}). Show ();

 

The preceding section is abnormal in IE and abnormal. Delete the comma (,) at the end of the html configuration item. It seems that IE and syntax are more rigorous. During console development, you always like to use console. log () to print some information on the console, but this object is not found in IE browsers. Therefore, before using the console, you need to make a non-empty judgment if (typeof (console )! = "Undefined" & console! = Null)

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.