webdev-gadgets-bootstrap-pagination
欢迎转载、使用。
pagination component based on bootstrap pagination, create pagination dynamically and stably, prevent many kinds of boundary exceptions.
git 地址
动态稳定创建分页,能处理多种边界条件异常。
simple usage:
html: (this component did nothing but insert html code into div.pagination)
<div class="text-center">
<div class="pagination"></div>
</div>
javascript:
$('.pagination').bsPagination({
totalRecord: 200,
recordPerPage: 10,
recentPage: 3
});