简体   繁体   English

如何使用jQuery分页插件

[英]How to use jquery pagination plugin

I've created a webpage to display the array elements, How to use the pagination plugin to display these contents 2 items per page, I've tried jquery.pajinate.js and some other plugins, but I've not figured out how to use it, Help me with any of the pagination plugins to solve this .. Any guidance and help is appreciated..! 我创建了一个网页来显示数组元素,如何使用分页插件来显示这些内容每页2个项目,我尝试了jquery.pajinate.js和其他一些插件,但是我还没有弄清楚如何使用它,帮助我使用任何分页插件来解决此问题..任何指导和帮助都表示赞赏。

Here is the webpage that displays an array elements : http://jsfiddle.net/ztruc/ 这是显示数组元素的网页: http : //jsfiddle.net/ztruc/

please refer this fiddle 请参考这个小提琴

i have just added $('.message').hide().slice(0, 2).show(); //slice(startElement, endElement); 我刚刚添加了$('.message').hide().slice(0, 2).show(); //slice(startElement, endElement); $('.message').hide().slice(0, 2).show(); //slice(startElement, endElement); for pagination. 分页。 In this way you can implement pagination to your site. 这样,您可以对您的网站实施分页。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM