Bootstrap分页插件--Bootstrap Paginator

jingtianyiyi 2016-01-06

参数说明:

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/

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

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

相关推荐