easyui-window 关闭事件,只要关闭窗口就会触发
2016-06-29 16:38
501 查看
$(function () {
$('#windowsMSG').window({
onBeforeClose: function () { //当面板关闭之前触发的事件
if (confirm('窗口正在关闭,请确认您当前的操作已保存。\n 是否继续关闭窗口?')) {
$('#windowsMSG').window('close', true); //这里调用close 方法,true 表示面板被关闭的时候忽略onBeforeClose 回调函数。
} else
return false;
}
});
});
$('#windowsMSG').window({
onBeforeClose: function () { //当面板关闭之前触发的事件
if (confirm('窗口正在关闭,请确认您当前的操作已保存。\n 是否继续关闭窗口?')) {
$('#windowsMSG').window('close', true); //这里调用close 方法,true 表示面板被关闭的时候忽略onBeforeClose 回调函数。
} else
return false;
}
});
});
相关文章推荐
- gradleb编译的finished with non-zero exit value问题
- iOS中文、数字、符号在UILabel上左右对齐
- ISSUE:-fembed-bitcode is not supported on versions of iOS prior to 6.0
- js中return;、return true、return false;区别
- 1Z0-051-DDL-创建同义词和序列
- Codeforces 527D Clique Problem
- vuejs - the component is a fragment instance
- Android studio 中NameValuePair跟BasicNameValuePair 不能正常导包问题
- How to remove null value in json string
- Gradle version 2.10 is required. Current version is 2.2.1. If using the grad
- openfire log4j:ERROR setFile(null,true) call failed.
- 视频录制,照片拍摄,保存等,UIImagePickerController
- LeetCode 304 Range Sum Query 2D - Immutable(范围求和2D - 不可变)
- Dubbo-Fail to decode request due to: RpcInvocation
- 17.Break you
- Mac系统下使用uiautomator需要配置ADB环境ANT环境Android环境配置
- Java中的Process和ProcessBuilder
- RequireJS多页面应用实例分析
- Count Numbers with Unique Digits
- js算法: quick sort 快速排序