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.
我正在使用 shadowbox 在单击链接时打开页面,并且在单击链接时确实会打开页面。
问题是“正在加载...”图标出现 1 秒钟然后消失,而我的页面需要大约 5 秒钟才能加载。
如何在页面完全加载并准备好之前保持“正在加载...” div?
非常感谢,
Shadowbox.init({ onFinish: shadowboxFinish });
然后
function shadowboxFinish() { $("#sb-loading").show(); $("#sb-player").load(function () { $("#sb-loading").hide(); }); }