首页 > 代码库 > Bootstrap分页插件--Bootstrap Paginator

Bootstrap分页插件--Bootstrap Paginator

 

 

  • 入门实例
  • 组件结构
  • 参数
  • 公共命令
  • 事件Events

参数说明:

http://my.oschina.net/shunshun/blog/204587

 

代码示例1:

var options = {    currentPage: 3,    totalPages: 10,    itemTexts: function (type, page, current) {            switch (type) {            case "first":                return "First";            case "prev":                return "Previous";            case "next":                return "Next";            case "last":                return "Last";            case "page":                return "p"+page;            }        }    }$(‘#example‘).bootstrapPaginator(options);


代码示例2:

//分页功能var page=$(‘#page1‘);var options = {currentPage:page.attr(‘pageNum‘),totalPages:page.attr(‘pageCount‘),numberOfPages:page.attr(‘numberOfPages‘),pageUrl: function(type, page, current){return "/admin/movie?"+composeUrlParams()+"&p="+page;}}$(‘#page1‘).bootstrapPaginator(options);})</script>

 

分页进阶

http://blog.fens.me/nodejs-bootstrap-paginator/

 

Bootstrap Paginator分页插件+ajax 实现动态无刷新分页

http://blog.csdn.net/zxw394/article/details/30067827