EasyUI之EasyLoader加载器
2016-07-17 22:27
513 查看
load | module, callback | 加载指定模块。当加载成功的时候一个回调函数将被调用。 Module的有效类型是: 单个module名称 一个module数组 用'.css'结尾的css文件 用'.js'结尾的js文件 |
modules | object | 预定义的模块。 | |
locales | object | 预定义的语言环境。 | |
base | string | easyui的基本路径,必须以'/'结尾。 | 基本路径将被自动相对于easyload.js进行设置 |
theme | string | 定义在'themes' 目录下的主题名称。 | default |
css | boolean | 定义当加载模块的时候是否加载css文件。 | true |
locale | string | 语言环境名称。 | null |
timeout | number | 以毫秒为单位的超时值,如果超时发生就触发。 | 2000 |
EasyLoader加载器注意使用方法,需要在js中,配置数组或参数调用,也就是前期load()方法的参数。
<script type="text/javascript"> $(function(){ /*easyloader.load(['window','messager'],function(){ $('#mywin').window({ title:'客户基本信息', width:400, height:300 }); $.messager.alert('提示信息','修改信息成功','info'); });*/ }); </script>
<div id="mywin"></div> <div id="mywin2" class="easyui-window" title="测试2" style="width:400px;height:300px"></div>
相关文章推荐
- ServletRequestAttributeListener接口
- The requested resource (/) is not available
- Vue.jsbrowserify项目模板
- INSTALLMENT of QValue
- String和StringBuilder、StringBuffer的区别?
- hdu-2818-Building Block-带权并查集
- php 序列化储存和转化 json_encode() json_decode($q,true)
- Android UI设计(引导界面):ViewPager之三PagerTabStrip与PagerTitleStrip添加标题栏的区别
- codeforces 234E Champions' League
- sap gui 740 mac 下载
- uboot启动zImage(go)和uImage(bootm)分析
- storyboard 控件设置autolayout没起作用
- 【转】编译quickfast解析库(沪深level2行情转码库)
- 三、Android Call requires API level 11 (current min is 8)
- 【C#】StringBuilder和string对比
- Junit测试【2】(详解suit函数)
- org.hibernate.loader.custom.NonUniqueDiscoveredSqlAliasException: Encountered a duplicated sql alias
- getpwuid()
- 如何生成uimage
- Result Maps collection already contains value for