Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我登录成功时,我调用该函数来关闭 fancybox setTimeout("window.parent.$.fancybox.close()",4000)enter code here ...该函数在 IE 9 上运行良好,但在 IE8 中成功时不会自动关闭。
setTimeout("window.parent.$.fancybox.close()",4000)enter code here
这些对我有用
setTimeout( function() { window.parent.$.fancybox.close(); },4000); setTimeout( window.parent.$.fancybox.close, 4000); setTimeout( "window.parent.$.fancybox.close()", 4000);