easyui-window 关闭事件,只要关闭窗口就会触发

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


            });
        });

 
 
原文地址:https://www.cnblogs.com/huangf714/p/6252419.html