jQuery Pagination Plugin

Add-ons
2026-07-21 13:23 6 次浏览 • 0 次下载 5.6KB
jQuery Pagination Plugin

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 '#';
}
});
星河码客

发现和分享优质开源项目,传承互联网精神,为开发者服务。

关于本站

联系我们

微信/广告合作:ITcloub (备注星河码客)

免责声明:本站资源版权归原作者所有,仅供学习与交流。如有侵权,请通过「关于我们 - 侵权投诉」联系删除。

Powered by Nuxt · Deployed on Cloudflare