Deep learning ExtJS4.2 (1)

Source: Internet
Author: User

Contact ExtJS4.2 also has a period of time, the total feel is still a good JS library, although the volume slightly larger point. Now want to based on the API provided by the official website, and then combined with some of their own cognition, re-examine the study of it.

First of all, we want to talk about the dynamic loading function in ExtJS4.2. Because it's a bit too big to introduce a 1.4MB ext-all.js file in an HTML file (which is probably why a small Web application doesn't use it), consider using the dynamic loading feature. Let's test this feature first and work with Firebug to debug. First look at my code.

You can see the ext-all-debug.js and Ext-debug.js in the directory on the right. I am referring to ext-debug.js, which is not all ext core components, but this file can guide us to get the required ext class. My app.js code is as follows:

Can see, when JS parsing here, the first will go to ext-debug.js inside to read the definition of Ext.application class, and then go to src/app/application.js again to read this kind of more specific information. This dynamic way is still good, because after all, ext-debug this JS is relatively small.

Look at Firebug, the result is the best proof.

Deep learning ExtJS4.2 (1)

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.