Javascript 单击mfp关闭按钮时放大弹出窗口未关闭
我已将弹出窗口配置如下:Javascript 单击mfp关闭按钮时放大弹出窗口未关闭,javascript,jquery,popup,Javascript,Jquery,Popup,我已将弹出窗口配置如下: $('.xxx').magnificPopup({ type:'iframe', closeOnContentClick: false, closeOnBgClick: true, showCloseBtn: true, closeBtnInside: true, enableEscapeKey: true, }); 但是,当按下“.mfp close”按钮时,弹出窗口不会关
$('.xxx').magnificPopup({
type:'iframe',
closeOnContentClick: false,
closeOnBgClick: true,
showCloseBtn: true,
closeBtnInside: true,
enableEscapeKey: true,
});
但是,当按下“.mfp close”按钮时,弹出窗口不会关闭。只有当我按下背景或选择escape键时,它才会关闭。最后,将忽略捕获单击事件的任何尝试。按下按钮时,如何关闭此弹出窗口