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.

 

 

 

 

你可能感兴趣的:(jquery)