div内滚动 瀑布流

    $("#tab_2").unbind("scroll").bind("scroll", function (e) {
        var sum = this.scrollHeight;
        if (sum <= $(this).scrollTop() + $(this).height()) {
            if(tab_2.no_data){

                return ;
            }
            if( tab_2.is_more){
                return ;
            }

            tab_2.$data.now_pages = tab_2.$data.now_pages+1;
            tab_2.get_shop_list(tab_2.$data.now_pages)
        }

        if($(this).scrollTop()<20){
            tab_2.unread = 0;
        }
    });

  

posted @ 2019-12-19 14:54  酷酷的城池  阅读(453)  评论(0编辑  收藏  举报