📜  php 页面加载器脚本 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:46.726000             🧑  作者: Mango

代码示例2
$('body').append('
Loading...
'); $(window).on('load', function(){ setTimeout(removeLoader, 2000); //wait for page load PLUS two seconds. }); function removeLoader(){ $( "#loadingDiv" ).fadeOut(500, function() { // fadeOut complete. Remove the loading div $( "#loadingDiv" ).remove(); //makes page more lightweight }); }