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 ;
}">