JQueryMobile Loadmore选项

任何想法如何在JQueryMobile中实现加载更多选项。 在我的应用程序中,我需要提取大量数据,并希望通过单击Listview的最后一行上的“加载更多”数据选项来加载前20并使用户加载更多数据。

这应该工作:

$('#loadmore-link').click(function() { // remove the "load more" link $(this).remove(); // get more LI elements (probably with a $.get()) $('ul').append('
  • More list items
  • '); // update the list view $('ul').listview('refresh'); });