美文网首页
js 加载更多

js 加载更多

作者: 木利 | 来源:发表于2018-07-23 16:25 被阅读0次
/**
* 下拉加载
* */
           $(window).scroll(function() {
                var scrollTop = $(this).scrollTop(),
                    scrollHeight = $(document).height(),
                    windowHeight = $(this).height();
                var positionValue = (scrollTop + windowHeight) - scrollHeight;
                if (positionValue == 0) {
                    page ++;
                    judge=true;
                    // 条用加载函数
                    GetOrderList(Status, page, payStatus);
                }
            });

相关文章

网友评论

      本文标题:js 加载更多

      本文链接:https://www.haomeiwen.com/subject/zyyjmftx.html