【问题标题】:JQueryMobile Loadmore optionsJQuery Mobile 加载更多选项
【发布时间】:2011-06-27 16:48:45
【问题描述】:

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

【问题讨论】:

    标签: jquery iphone jquery-mobile mobile


    【解决方案1】:

    这应该可行:

    $('#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');
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-22
      • 2012-04-17
      • 1970-01-01
      相关资源
      最近更新 更多