开发者

Is there any jquery plugin similar to lazyload for content

开发者 https://www.devze.com 2023-01-17 05:47 出处:网络
I\'m searching for jquery pluging where I can showing 3 table based record and on scrolling it should make ajax request for next 3-10 record. similar to lazyload but f开发者_开发问答or content. any co

I'm searching for jquery pluging where I can showing 3 table based record and on scrolling it should make ajax request for next 3-10 record. similar to lazyload but f开发者_开发问答or content. any code snippet even help me.


Something like this?

$(window).scroll(function(){
        if  ($(window).scrollTop() == $(document).height() - $(window).height()){
           // The scrollbar is at the bottom of the screen
           // Do your ajax call here and populate a div.
        }
});
0

精彩评论

暂无评论...
验证码 换一张
取 消