<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
$(document).scroll(function() {
let scroH = $(document).scrollTop(); //滚动高度
let viewH = $(window).height(); //可见高度
let bodyH = document.body.clientHeight; //网页可见区域高
if (viewH - scroH == bodyH){
alert("滚动到底部事件触发");
}
})
</script>