Pagination. js, pagination. js

Source: Internet
Author: User

Pagination. js, pagination. js

The project has the paging function, which was previously written by myself. The style is not easy to view and the function is simple. I found this plug-in pagination. js.

Page import pagination. js

Html code

1  <div class="list_button">2 </div>

Js Code

1 $ ('. list_button '). pagination ({2 totalData: count, 3 pageCount: pageCount, 4 showData: limitValue, 5 current: 1, 6 jump: true, 7 coping: true, 8 count: 2, 9 homePage: 'homepage', 10 endPage: 'Last page', 11 prevContent: 'previous page', 12 nextContent: 'Next page', 13 callback: pageCallback // pageCallback () call the function for paging. 14 });
1 function pageCallback (api) {2 var pageNo = 1 // current page number 3 if (api) {4 pageNo = api. getCurrent () // get current Code 5} 6}

Reference address (downloadable): http://www.jq22.com/jquery-info5697

Demo address: http://maxiaoxiang.com/jQuery-plugins/plugins/pagination.html

Js: https://github.com/zhaobao1830/paginationjs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.