首页 > Windows开发 > 详细

easyui 弹出框\windows弹窗 确定和右上角x关闭按钮点击事件

时间:2019-12-23 16:25:53      阅读:475      评论:0      收藏:0      [点我收藏+]

一、window弹出框按钮事件

 1 $.window({
 2     _oa_id:‘name‘,
 3     title:title,
 4     height:height,
 5     width:width,
 6     iframe:true,
 7     href:‘‘,
 8     hsabutton:flase,
 9     on_my_close:function(){
10     }
11     });
$.window({
 2     _oa_id:‘name‘,
 3     title:title,
 4     height:height,
 5     width:width,
 6     iframe:true,
 7     href:‘‘,
 8     hsabutton:true,
9   buttons:function(){
10     text:‘确定‘,
11     handler:function(){
12     }
13 14
on_my_close:function(){ 15 } 16 });

 

右上角关闭按钮在 on_my_close下写事件即可,如果需要添加按钮,将hasbutton设置为true添加事件

二、alert弹出事件

var msg=$.messager.alert("提示信息","请重新输入","info");
msg.window({
    modal:true,
    onBeforeClose:function(){
        window.close();
    }
});

点击确定和右上角关闭会执行相同事件

easyui 弹出框\windows弹窗 确定和右上角x关闭按钮点击事件

原文:https://www.cnblogs.com/qinxuhui/p/12084015.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!