jquery 滑动加载更多

        //滑动加载
        var is_scroll=false;
        $(window).scroll(function () {
            is_scroll=true;
            //已经滚动到上面的页面高度
            var scrollTop = $(this).scrollTop();
            //页面高度
            var scrollHeight = $(document).height();
            //浏览器窗口高度
            var windowHeight = $(this).height();
            //此处是滚动条到底部时候触发的事件,在这里写要加载的数据,或者是拉动滚动条的操作
            if (scrollTop + windowHeight == scrollHeight) {
                loadpage();
            }
        });
各位多多指教!
原文地址:https://www.cnblogs.com/lixiaoquan/p/7098759.html