EasyUI实现第二层弹出框的方法
这是网友在EasyUI拓展时的代码。
可以根据实际需要自行修改。
$.modalDialog2.handler这个handler代表弹出的dialog句柄
$.modalDialog2.xxx这个xxx是可以自己定义名称,主要用在弹窗关闭时,刷新某些对象的操作,可以将xxx这个对象预定义好
$.modalDialogTwo=function(options){
if($.modalDialogTwo.handler==undefined){//避免重复弹出
varopts=$.extend({
title:'',
width:840,
height:680,
modal:true,
onClose:function(){
$.modalDialogTwo.handler=undefined;
$(this).dialog('destroy');
},
onOpen:function(){
//parent.$.messager.progress({
//title:'提示',
//text:'数据加载中,请稍后....'
//});
}
},options);
opts.modal=true;//强制此dialog为模式化,无视传递过来的modal参数
return$.modalDialogTwo.handler=$('<div/>').dialog(opts);
}
};
以上就是个人使用EasyUI实现第二层弹出框的方法,希望大家能够喜欢。
热门推荐
1 训练狗狗憋尿
2 狗狗追踪训练
3 狗狗训练要多少钱
5 深圳狗狗训练
6 训练狗狗唤回
7 狗狗叫怎么训练
8 狗狗训练班
10 狗狗社会化训练
11 狗狗叫回训练
12 广州狗狗训练学校
13 狗狗训练躺下
14 狗狗随行训练
15 训练狗狗巡回
16 狗狗要怎么训练
17 狗狗喂食训练
18 训练狗狗躺下