In order to provide users with a good experience of the web page, the use of scripts in the page is a common practice. The rich interface functions of Ext JS framework developed with JavaScript can give users a good experience. In order to improve the execution efficiency of pages, Ext JS realizes the dynamic loading mechanism through a lot of methods, including the method of parameter setting, the method of import the Ext part and the micro loading, etc. The methods related to dynamic loading mechanism of Ext JS are discussed in this paper, and by the comparison, the method of parameter setting is simple and efficient.%为了提供给用户良好的页面使用感受,在页面中使用脚本是常见的做法。用JavaScript开发的Ext JS框架其丰富的界面功能,能带给用户良好的体验。为了提高页面的执行效率,Ext JS通过一系列方法实现了动态加载机制,具体有参数设置方法、Ext部分导入方法以及微加载等。文章就Ext JS的动态加载机制的相关方法进行讨论。经过比较,其中的参数设置方法简单、高效。
展开▼