开源中国有一篇介绍的很详细,链接:https://my.oschina.net/shunshun/blog/204587
1.引入
<script type="text/javascript" src="js/bootstrap-paginator.js"></script>
2.html代码 引用bootstrap的分页组件
1 <nav aria-label="Page navigation"> 2 <ul class="pagination"> 3 <li> 4 <a href="#" aria-label="Previous"> 5 <span aria-hidden="true">«</span> 6 </a> 7 </li> 8 <li><a href="#">1</a></li> 9 <li><a href="#">2</a></li> 10 <li><a href="#">3</a></li> 11 <li><a href="#">4</a></li> 12 <li><a href="#">5</a></li> 13 <li> 14 <a href="#" aria-label="Next"> 15 <span aria-hidden="true">»</span> 16 </a> 17 </li> 18 </ul> 19 </nav>