1. 程式人生 > >Bootstrap分頁插件--Bootstrap Paginator

Bootstrap分頁插件--Bootstrap Paginator

oschina 介紹 r.js paginator bsp div tor ria prev

開源中國有一篇介紹的很詳細,鏈接: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">&laquo;</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">&raquo;</span> 16 </a> 17 </li> 18 </ul> 19 </nav>

Bootstrap分頁插件--Bootstrap Paginator