fancybox onClosed 回调不起作用
我正在使用 fancyBox v2.0.4 ...
好吧,这应该很简单,但是在我的情况下不起作用...我只是想在 fancybox 关闭时运行回调函数...
$('a#stpa_announcement_details_open').fancybox({
'onCleanup': function() { alert('test') },
'hideOnContentClick': true
});
不起作用
$('a#stpa_announcement_details_open').fancybox({
'onClosed': function() { alert('test') },
'hideOnContentClick': true
});
不起作用
I am using fancyBox v2.0.4 ...
Well this should be simple, however it does not work in my case... I simply want to run a callback function when the fancybox is closed...
$('a#stpa_announcement_details_open').fancybox({
'onCleanup': function() { alert('test') },
'hideOnContentClick': true
});
does not work
$('a#stpa_announcement_details_open').fancybox({
'onClosed': function() { alert('test') },
'hideOnContentClick': true
});
does not work
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您正在使用旧版本中的选项,因此就像 -
您可以在 http://fancyapps.com/fancybox/# 找到这些选项文档
You are using options from older versions, so it would be like -
You can find these options at http://fancyapps.com/fancybox/#docs
希望它有效..
Hope it works..
使用 beforeClose 或 afterClose。在“回调”选项卡下查找 API 文档 http://fancyapps.com/fancybox/#docs
use beforeClose or afterClose. Find the API documentation under the Callbacks tab here http://fancyapps.com/fancybox/#docs