Infinite scrolling inside a div with AJAX (jQuery) loaded date

前端 未结 3 1025
野的像风
野的像风 2021-01-31 20:22

I\'ve been trying to figure this out over several questions here on SO, finding out the different parts and then assembling them, but now I\'m giving up.

What I\'m tryin

3条回答
  •  心在旅途
    2021-01-31 20:30

    If you're using Paul Irish's Infinite Scroll, you can just specify a binder as one of the arguments where you have implemented infinite scroll, just like this:

    $('.mydiv').infinitescroll({
         binder: $(".name-of-div")  
    

    The binder is set to the document window by default, but if you specify it, you can have infinite scroll running simply inside one div on your page

提交回复
热议问题