简化了 Bootstrap 分页功能:jQuery Pagination plugin
jQuery Pagination Plugin for Bootstrap 这个 jQuery 插件简化了 Bootstrap 分页功能的使用。它使用适当的类:.pagination, .active 和 .disabled。
选项和事件
- 选项的说明和缺省值:
totalPagesthe number of pages (required, checked)startPagethe current page that show on start(default: 1)visiblePagesmaximum visible pages (default: 5)hreftemplate for pagination links (defaultjavascript:void(0);)hrefVariablevariable name in href template for page number (default{{number}})firsttext label (default:'First')prevtext label (default:'Previous')nexttext label (default:'Next')lasttext label (default:'Last')paginationClassthe root style for pagination component (default:'pagination'). You can use this option to apply your own style
- 可用的事件:
onPageClickcallback function- Function parameters
eventobjectpagethe number of page

本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!