0

谁能告诉我如何实现加载更多按钮。

我有一个包含 100 到 150 个图像 URL 的列表。我必须按一次屏幕 10 并等待用户点击底部的加载更多按钮。

4

1 回答 1

0

像这样?

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

取自:JQueryMobile 加载更多选项

于 2012-07-11T13:41:02.930 回答