jquery 简单的分页插件

SimplePager - an easy jquery paging plugin

Following the popularity of SimplePager - easy paging plugin , we have updated the plugin to overcome two of the major issues with the original incarnation.  SimplePager no longer breaks chaining and can now be used more than once per page.

 

We also replaced the old holder option (used for specifying a container for the paging) with a pagerLocation option that allows for setting the pager navigation to appear before after or before & after the paged item.

 

The premise behind SimplePager is to allow for creating pagination with as little effort or configuration as possible.  This pager plugin can page divs, paragraphs, list items or almost any other content.

Sample usage

The very simplest usage is shown below.

 

$(function() {
	$("ul.paging").quickPager();
});
 

Plugin options

Option  - (default)

 

pageSize - (10)
The amount of items to show per page

 

currentPage - (1)
The page to start on

 

pagerLocation - (after)
Where to put the pager nav? accepts before , after or both

Known Issues

Because of the removal of the "holder" option, this plugin no longer supports paging table rows.  This seemed to be an edge case anyhow, but if enough people let us know that they'd like this back we'll get it into a new version at some point.

Demo and Download

A demo is available here , and you can download a zip of the files from here .

Feedback

Please post any questions, comments or other feedback in the comments section below.

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值