我刚升级了我的fancybox版本,发现更新后父页面的刷新不起作用了。之前我做过以下操作:
OnClosed: function () {
parent.location.reload (true);
}
但是今天如何做到呢?
感谢您的帮助。
afterClose: function() {
window.location.reload()
}
// Tested and works as expected
$(".fancybox").fancybox({
afterClose: function() {
window.location.reload();
}
});
afterClose
回调函数会在关闭动画结束后被调用。顺便提一下:http://fancyapps.com/fancybox/#docs