EasyLoader loader of EasyUI

load

module, callback

Load the specified module. A callback function will be called when loading is successful.

Module Valid types are: a single module name of a module array with '.css' end css file with '.js' end js file





modules

object

Pre-defined modules.


locales

object

Predefined locale.


base

string

The basic path of easyui must end with a '/' .

Path will be substantially automatically with respect easyload.js set

theme

string

The name of the theme defined in the'themes'  directory.

default

css

boolean

Define whether to load the css file when loading the module .

true

locale

string

Locale name.

null

timeout

number

The timeout value in milliseconds, which is triggered if a timeout occurs.

2000


The EasyLoader loader pays attention to the usage method. It needs to configure the array or parameter call in js, which is the parameter of the previous load() method.

<script type="text/javascript"> $(function(){ /*easyloader.load(['window','messager'],function(){ $('#mywin').window({ title:' Basic customer information', width:400, height:300 }); $.messager.alert('Prompt information','Modified information successful','info'); });*/ }); </script>



<div id="mywin"></div><div id="mywin2" class="easyui-window" title="测试2" style="width:400px;height:300px"></div>



Guess you like

Origin blog.51cto.com/2096101/2588802