单击链接启用加载图形的jQuery
因此,我有一个脚本,用于在页面加载时显示这个loding图形单击链接启用加载图形的jQuery,jquery,css,html,page-loading-message,Jquery,Css,Html,Page Loading Message,因此,我有一个脚本,用于在页面加载时显示这个loding图形 $(window).load(function() { // makes sure the whole site is loaded $("#status").fadeOut(); // will first fade out the loading animation $("#preloader").delay(100).fadeOut("fast"); // will fade out th
$(window).load(function() { // makes sure the whole site is loaded
$("#status").fadeOut(); // will first fade out the loading animation
$("#preloader").delay(100).fadeOut("fast"); // will fade out the white DIV that covers the website.
})
这会立即显示在页面加载上。知道如何在页面退出时播放此节目吗?因此,对于用户来说,从单击到加载都是一致的?使用
unload
$(window).unload(function() {
$("#status").fadeOut();
$("#preloader").delay(100).fadeOut("fast");
});
可能是$(文档).ready(函数(){})
?什么是`$(窗口).卸载(函数())`