[英]how to implement pagination in phonegap
I am new to phonegap. 我是Phonegap的新手。 I wish to implement
pagination
functionality using phonegap. 我希望使用phonegap实现
pagination
功能。 I wish to keep one div
and above it should be page numbers. 我希望保留一个
div
,其上方应该是页码。 On click of each page number, div contents should change. 单击每个页码时,div内容应更改。
How do I implement this? 我该如何实施?
You can use some frameworks like Jquery mobile. 您可以使用一些框架,例如Jquery mobile。 What I use is Jquery Mobile Multiple Pages
我使用的是Jquery Mobile Multiple Pages
HTML Code HTML代码
Start of first page
<div data-role="page" id="foo">
<div data-role="header">
<h1>Foo</h1>
</div><!-- /header -->
<div role="main" class="ui-content">
<p>View internal page called <a href="#bar">bar</a></p>
</div><!-- /content -->
<div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /footer -->
page 1 end
Start of second page
<div data-role="header">
<h1>Bar</h1>
</div><!-- /header -->
<div role="main" class="ui-content">
<p><a href="#foo">Back to foo</a></p>
</div><!-- /content -->
<div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /footer -->
Like this you can put many pages in one html. 这样,您可以将多个页面放在一个html中。
Another Option Is swiping from one page to another page. 另一个选项是从一页滑动到另一页。 For this refer Link
有关此链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.