$(window).scroll(function () {
var scrollTop = $(this).scrollTop();
var scrollHeight = $(document).height();
var windowHeight = $(this).height();
console.log(scrollHeight, scrollTop + windowHeight);
if (scrollTop + windowHeight == scrollHeight) {
}
});
jquery判断滚动条到底部
- 上一篇:简单的ajax类
- 下一篇:ios js时间换成时间戳