Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我如何实现加载更多按钮。
我有一个包含 100 到 150 个图像 URL 的列表。我必须按一次屏幕 10 并等待用户点击底部的加载更多按钮。
像这样?
$('#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 加载更多选项