简体   繁体   中英

Require in javascript

What does this mean in javascript? I have just started using ext-js. And the first line in sample header file is

Ext.require('Ext.tab.*');

What does this mean ?

That call is used for dynamic loading of classes/scripts:

Ext - Sencha Docs - Ext JS 4.0

So your call is dynamically loading all of the classes in the Ext.tab namespace (since you're using a wildcard expression).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM