2
任何想法如何在JQueryMobile中实现加载更多选项。在我的应用程序中,我需要提取大量数据,并希望加载前20名,并通过单击Listview最后一行上的“加载更多”数据选项来加载更多数据。JQueryMobile Loadmore选项
任何想法如何在JQueryMobile中实现加载更多选项。在我的应用程序中,我需要提取大量数据,并希望加载前20名,并通过单击Listview最后一行上的“加载更多”数据选项来加载更多数据。JQueryMobile Loadmore选项
这应该工作:
$('#loadmore-link').click(function() {
// remove the "load more" link
$(this).remove();
// get more LI elements (probably with a $.get())
$('ul').append('<li>More list items</li>');
// update the list view
$('ul').listview('refresh');
});