简化了 Bootstrap 分页功能:jQuery Pagination plugin
jopen
12年前
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
