判断滚动滚动到底部

$(function(){

$('#aa').on('scroll', function(){

var 容器固定高度 = $('#aa').height();

var 文档高度 = $('#aa').scrollHeight;

var 滚动条位置 = $('#aa').scrollTop();

if(文档高度 == 容器固定高度 + 滚动条位置){

alert('我到底部了');

}

});

});

原文地址:https://www.cnblogs.com/Zting00/p/7497704.html