标签:settime document 加载 script blog end log scrolltop set
var end=1; $(window).bind("scroll",function(){ if($(document).scrollTop() + $(window).height() > $(document).height() - 100 && end != 0)// 接近底部100px { $(‘#next‘).html(‘加载中...‘); end=0; console.log("1"); setTimeout(function(){ end=1; $(‘#next‘).html(‘‘); },3000) } });
标签:settime document 加载 script blog end log scrolltop set
原文地址:http://www.cnblogs.com/fm060/p/6896446.html