easyui dialog动态创建怎么关闭 5
top.$('<divstyle="left:30%;top:30%;"></div>').dialog({title:'查看详情',width:400,closed:f...
top.$('<div style="left:30%; top:30%;"></div>').dialog({
title: '查看详情',
width: 400,
closed: false,
cache: false,
href: '/adminuser/admin/loginview.aspx?type=table&sid=' + ids,
modal: true,
buttons: [{
text: '关闭',
iconCls: 'icon-no',
handler: function () {
//我要的就是这里的关闭方法 下面的我都试了按关闭没有反映
//top.$("#DivView").dialog('destory');
//top.$('#DivView').dialog('close');
//$(this).dialog('destory');
//var d = top.$("#DivView", $(this).closest(".window"));
//window.$('#DivView').dialog('close');
//parent.dialog('close');
}
}]
}); 展开
title: '查看详情',
width: 400,
closed: false,
cache: false,
href: '/adminuser/admin/loginview.aspx?type=table&sid=' + ids,
modal: true,
buttons: [{
text: '关闭',
iconCls: 'icon-no',
handler: function () {
//我要的就是这里的关闭方法 下面的我都试了按关闭没有反映
//top.$("#DivView").dialog('destory');
//top.$('#DivView').dialog('close');
//$(this).dialog('destory');
//var d = top.$("#DivView", $(this).closest(".window"));
//window.$('#DivView').dialog('close');
//parent.dialog('close');
}
}]
}); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询