如何为div窗口的关闭按钮添加事件_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:05:47
Original
2144 people have browsed it

我想在点击div窗口右上角关闭按钮关闭div时,执行一个方法,怎么做?
这是我初始化div的方法
easyloader.load(["moveFixedDialog", "combogrid", "validatebox",
"combobox", "form", "blockUI", "messager", "validMethods",
"datebox", "datagrid" ], function () {
$("#evaluateDiv").dialog({
modal:true,
closed:true,
width: 300,
height:250,
top:160
});
});


回复讨论(解决方案)

配置close回调试试,应该支持,不支持的话查查API看关闭回调怎么配置
close:function(){
    alert('关闭');
}

你用的是插件,调用插件本身的方法比较方便,自己找找

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!