Looking for a way to dynamically add more lists to the bottom of jQuery Mobile listview

后端 未结 3 1141
名媛妹妹
名媛妹妹 2020-12-28 10:36

I am looking for a way to add more lists to the bottom of my listview after scrolling down. For instance, I have a return of 20 items initially. I was going to use a paginat

3条回答
  •  死守一世寂寞
    2020-12-28 11:10

    There are a few articles describing methods for "forever scroll" and "infinite scroll" which is what it sounds like you're asking about.

    The idea behind them is to load asynchronously more data when the user scrolls down to a predetermined number of items from the bottom.

    There is a known issue with that method though, in that it makes a liar out of the scroll bar itself.

    http://www.infinite-scroll.com/infinite-scroll-jquery-plugin/
    http://masonry.desandro.com/demos/infinite-scroll.html
    http://designbeep.com/2011/08/12/12-jquery-infinite-scrollingscroll-read-plugins-for-content-navigation/ http://www.jquery4u.com/tutorials/jquery-infinite-scrolling-demos/

提交回复
热议问题