1:html a标签去掉手型
if (positionValue == 0) {
//alert("已经到最底啦!!!");
console.log("scrollTop:"+scrollTop+",scrollHeight:"+scrollHeight+",windowHeight:"+windowHeight+",weekTop:"+weekTop)
}
});
添加 style= "cursor:default" 即可。
2.判断页面是否到底部
$(window).scroll(function() {
var locationTop = $('#id_area').offset().top;//某元素距离底部的绝对距离
var scrollTop = $(this).scrollTop(),//滚动的距离
scrollHeight = $(document).height(),//内容的总长度
windowHeight = $(this).height(); //屏幕可视大小
var positionValue = (scrollTop + windowHeight) - scrollHeight;if (positionValue == 0) {
//alert("已经到最底啦!!!");
console.log("scrollTop:"+scrollTop+",scrollHeight:"+scrollHeight+",windowHeight:"+windowHeight+",weekTop:"+weekTop)
}
});