JQueryMobile加载更多选项
知道如何在JQueryMobile中实现LoadMore选项吗。在我的应用程序中,我需要提取大量数据,并希望加载前20名,通过单击Listview最后一行的“加载更多”数据选项,让用户加载更多数据。这应该可以:JQueryMobile加载更多选项,jquery,iphone,jquery-mobile,mobile,Jquery,Iphone,Jquery Mobile,Mobile,知道如何在JQueryMobile中实现LoadMore选项吗。在我的应用程序中,我需要提取大量数据,并希望加载前20名,通过单击Listview最后一行的“加载更多”数据选项,让用户加载更多数据。这应该可以: $('#loadmore-link').click(function() { // remove the "load more" link $(this).remove(); // get more LI elements (probably with a $.
$('#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');
});
$(“#加载更多链接”)。单击(函数(){
//删除“加载更多”链接
$(this.remove();
//获取更多LI元素(可能使用$.get())
$('ul')。追加('li>更多列表项');
//更新列表视图
$('ul').listview('refresh');
});