jQuery Pagination Plugin
Add-ons

Plugin Description: Based on the kkpager.js pagination plugin, compatible with IE6.
Last Updated: 2020-08-25 22:15:43
Using click mode (custom navigation function)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | // Generate pagination controls kkpager.generPageHtml({ pno: '${p.pageNo}', mode: 'click', // Set to click mode // Total number of pages total: '${p.totalPage}', // Total number of data items totalRecords: '${p.totalCount}', // Clicking page numbers, navigating through the page number input field, and clicking buttons such as Home and Next will all invoke click. // Suitable for scenarios where the page does not need to be refreshed, such as: ajax click: function(n) { // You can implement your own logic here //... // After processing, you can manually call selectPage to switch and select a page. this.selectPage(n); }, // getHref is the link generation function in click mode. It generally does not need to be configured. The default implementation is shown below. getHref: function(n) { return '#'; }}); |
评论