简化了 Bootstrap 分页功能:jQuery Pagination plugin
jopen
11年前
jQuery Pagination Plugin for Bootstrap 这个 jQuery 插件简化了 Bootstrap 分页功能的使用。它使用适当的类:.pagination
, .active
和 .disabled。
选项和事件
- 选项的说明和缺省值:
totalPages
the number of pages (required, checked)startPage
the current page that show on start(default: 1)visiblePages
maximum visible pages (default: 5)href
template for pagination links (defaultjavascript:void(0);
)hrefVariable
variable name in href template for page number (default{{number}}
)first
text label (default:'First'
)prev
text label (default:'Previous'
)next
text label (default:'Next'
)last
text label (default:'Last'
)paginationClass
the root style for pagination component (default:'pagination'
). You can use this option to apply your own style
- 可用的事件:
onPageClick
callback function- Function parameters
event
objectpage
the number of page