您的位置:首页 > 产品设计 > UI/UE

easyui dialog 关闭按钮触发事件

2016-10-27 00:00 211 查看
dialog点击关闭按钮同时触发事件,easyui提供了监听方法:onClose,onBeforeClose

(1)onBeforeClose

$(document).ready(function(){
$("#win").window({
onBeforeClose:function(){
alert(111);
}
})
})

(2)onClose

<div id="swtk" class="easyui-dialog" style="width:500px;height:500px;" data-options="modal:true,draggable:false,closed:true,onclose:function(){
alert("222");
window.location.href = URL ;
}">
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: