Usage
Copy Code code as follows:
Easyloader.base = '.. /'; Set the basic path for Easyui
Easyloader.load (' Messager ', function () {//Loading specified module
$.messager.alert (' Title ', ' load OK ');
});
Characteristics
Name |
Type |
Description |
Default value |
Modules |
Object |
A predefined module. |
|
Locales |
Object |
A predefined locale. |
|
Base |
String |
the basic path of the Easyui must end With '/' . |
The base path will be automatically set relative to the Easyload.js |
Theme |
String |
Defines the name of the topic under the ' Themes ' directory. |
Default |
Css |
Boolean |
Defines whether to load a CSS file when the module is loaded . |
True |
Locale |
String |
Language environment name. |
Null |
Timeout |
Number |
The time-out value in milliseconds, which is triggered if a time-out occurs. |
2000 |
Language environment defined
- Af
- Bg
- Ca
- Cs
- Da
- De
- En
- Fr
- nl
- Zh_cn
- Zh_tw
Event
Name |
Parameters |
Description |
OnProgress |
Name |
Triggered when a module is successfully loaded. |
OnLoad |
Name |
triggered when a module and its dependencies are successfully loaded. |
Method
| name |
< strong> parameters |
description |
| load |
module, callback |
to load the specified module. A callback function is invoked when the load is successful. The valid types of module are: single module name one module array span Arial ', ' Sans-serif ' ' "> with ending css file ends with js file |