var edit=true;//可控元素
$(window).scroll(
function () {
var scrollTop = $(this).scrollTop();
var scrollHeight = $(document).height();
var windowHeight = $(this).height();
if (scrollTop + windowHeight+100 >= scrollHeight && edit) {
edit=false;
console.log(“来,跟着一起。哈哈哈哈哈哈”);
setTimeout("edit=true;",1000);
}else{
console.log(scrollTop);
console.log(windowHeight);
console.log(scrollHeight);
}
}
);
JS jQuery滚动条下拉到底触发事件
最新推荐文章于 2024-05-31 09:08:33 发布