更新时间:2023-12-02 10:12:52
要从iframe中关闭fancybox,你可以在表单上使用
parent。$。fancybox.close();
submit()
event。
To close the fancybox from within the iframe, you can use parent.$.fancybox.close();
on the form
submit()
event.
然后在Fancybox初始化程序中添加一个onClose事件,该事件将重新加载页面:
Then add an onClose event on the Fancybox initializer, which would reload the page:
$(".login-popup").fancybox({
maxWidth : 310,
height : 300,
autoSize : false,
closeClick : false,
openEffect : 'none',
closeEffect : 'none',
'afterClose':function () {
window.location.reload();
},
});