angularJs 中的ui-bootstrap 插件pagination使用总结

来源:互联网 发布:教务系统数据库表 编辑:程序博客网 时间:2024/06/07 04:51

上代码

  <uib-pagination class="pagination-sm pagination-custom" boundary-links="true" rotate="false"                                total-items="vm.totalElements"//总共多少条数据                                ng-change="vm.load(vm.currentPage-1,vm.pageSize,vm.totalElements,vm.searchConditions)"//点击页面跳转                                max-size="10"//展示多少页码                                ng-model="vm.currentPage"//当前页                                items-per-page="vm.pageSize"//每页多少条数据                                first-text="首页"                                last-text="最后一页"                                next-text="下一页"                                previous-text="上一页"></uib-pagination>

以上已经基本满足日常开发

原创粉丝点击