YouTip LogoYouTip

Plugins Base Easyloader

# jQuery EasyUI Basic Plugin – Easyloader Loader * * jQuery EasyUI Plugins](#) * * * ## Usage #### Loading EasyUI Modules ```javascript easyloader.base = '../'; // Set the base directory for easyui easyloader.load('messager', function(){ // Load the specified module $.messager.alert('Title', 'load ok'); }); #### Loading Scripts via Absolute URL ```javascript using('http://code.jquery.com/jquery-1.4.4.min.js', function(){ // ... }); #### Loading Scripts via Relative URL ```javascript // Script path relative to the easyui directory using('./myscript.js', function(){ // ... }); ## Properties | Name | Type | Description | Default | | :--- | :--- | :--- | :--- | | modules | object | Predefined modules. | | | locales | object | Predefined locales. | | | base | string | The base directory for easyui, must end with '/'. | The base directory will be set automatically relative to easyload.js | | theme | string | The theme name defined in the 'themes' directory. | default | | css | boolean | Whether to load CSS files when loading modules. | true | | locale | string | The locale name. | null | | timeout | number | The timeout value in milliseconds, triggered if a timeout occurs. | 2000 | * * * ## Defined Locales * af * bg * ca * cs * cz * da * de * en * es * fr * nl * tr * zh_CN * zh_TW ## Events | Name | Parameters | Description | | :--- | :--- | :--- | | onProgress | name | Fires when a module is successfully loaded. | | onLoad | name | Fires when a module and its dependencies are successfully loaded. | ## Methods | Name | Parameters | Description | | :--- | :--- | :--- | | load | module, callback | Load the specified module. A callback function will be called when the loading is successful. Valid types for the `module` parameter are: a single module name, an array of module names, a CSS file ending with '.css', a JS file ending with '.js' | * * jQuery EasyUI Plugins](#)
← Plugins Base DroppablePlugins Base Parser β†’