jq监控滑动

$(window).scroll(function () {
    if ($(window).scrollTop() == $(document).height() - $(window).height()) {
        alert('bottom!!');
    }
});
原文地址:https://www.cnblogs.com/lhj-blog/p/7526293.html