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.
如何禁用所有超链接,直到lightbox加载。因为在lightbox-js加载之前,如果我点击超链接,那么它会被重定向到 HTML 页面,而不是显示在灯箱中。
lightbox
lightbox-js
bind()
unbind()
$('a').click(function(e){ e.preventDefault(); });
加载灯箱后,使用以下命令:
$('a').unbind('click');