easyui window弹窗获取x事件

$(function () {
            $('#windowsMSG').window({
                onBeforeClose: function () { //当面板关闭之前触发的事件
                    if (confirm('窗口正在关闭,请确认您当前的操作已保存。\n 是否继续关闭窗口?')) {
                        $('#windowsMSG').window('close', true); //这里调用close 方法,true 表示面板被关闭的时候忽略onBeforeClose 回调函数。
                    } else
                        return false;
                }


            });
        });

猜你喜欢

转载自blog.csdn.net/weixiaobeihout/article/details/51769801
今日推荐