HTML5[7]: 实现网页版的加载更多

理所当然,jQuery出场:

$(function() {
    $(window).scroll(function() {
        if($(this).scrollTop() + $(this).innerHeight() >= this.scrollHeight) {
            alert('end reached');
        }
    })
});
posted @ 2015-02-04 17:42  静候良机  阅读(1527)  评论(0编辑  收藏  举报