摘要:AngularJs分页组件pagination的用法详解AngularJs分页组件pagination的用法详解

脚本宝典收集整理的这篇文章主要介绍了

js实例教程-AngularJs分页组件pagination的用法详解

脚本宝典小编觉得挺不错的,现在分享给大家,也给大家做个参考,希望能帮助你少写一行代码,多一份安全和惬意。

小宝典致力于为广大程序猿(媛)提供高品质的代码服务,请大家多多光顾小站,小宝典在此谢过。

AngularJs分页组件pagination的用法详解

 <footer class="panel-footer">      <p class="row">       <p class="col-sm-3 hidden-xs">         <span class="font-bold" translate="page.no">第</span>{{(bigCurrentPage-1)*pagingOptions.size+1}}-{{(bigCurrentPage-1)*pagingOptions.size+pagingOptions.numberOfElements}}         <span class="font-bold" translate="page.item">条</span>/         <span class="font-bold" translate="page.total">共</span>{{pagingOptions.totalElements}}         <span class="font-bold" translate="page.item">条</span>         <span class="font-bold" translate="page.each_page">每页</span>         <select class="input-sm form-control w-sm inline v-middle" style="width:80px" ng-init="pagingOptions.pageSize = pagingOptions.pageSizes[0]" ng-model="pagingOptions.pageSize" ng-options="x for x in pagingOptions.pageSizes" ng-change="pageChanged()">         </select>         <span class="font-bold" translate="page.item">条</span>       </p>       <p class="col-sm-6 text-center">         <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="pageChanged()" max-size="maxSize" class="pagination-sm m-t-none m-b" boundary-links="true" rotate="false" num-pages="numPages" items-per-page="pagingOptions.pageSize"></pagination>       </p>       <p class="col-sm-3 text-right text-center-xs">                         <ul class="pagination pagination-sm m-t-none m-b-none">          <span class="font-bold" translate="page.no">第</span>{{bigCurrentPage}}          <span class="font-bold" translate="page.page">页</span>/           <span class="font-bold" translate="page.total">共</span>{{pagingOptions.totalPages}}           <span class="font-bold" translate="page.page">页</span>           <span class="font-bold" translate="page.go">到</span>           <input type="number" class="form-control w-sm inline" style="width:100px" ng-model="bigCurrentPage" ng-change="bigCurrentPageChanged()">           <span class="font-bold" translate="page.page">页</span>           <button type="submit" class="btn btn-dark" ng-click="pageChanged()">            <span class="font-bold" translate="common.go">GO</span>           </button>         </ul>       </p>     </p>   </footer>

AngularJs分页组件pagination的用法详解

 <footer class="panel-footer">      <p class="row">       <p class="col-sm-3 hidden-xs">         <span class="font-bold" translate="page.no">第</span>{{(bigCurrentPage-1)*pagingOptions.size+1}}-{{(bigCurrentPage-1)*pagingOptions.size+pagingOptions.numberOfElements}}         <span class="font-bold" translate="page.item">条</span>/         <span class="font-bold" translate="page.total">共</span>{{pagingOptions.totalElements}}         <span class="font-bold" translate="page.item">条</span>         <span class="font-bold" translate="page.each_page">每页</span>         <select class="input-sm form-control w-sm inline v-middle" style="width:80px" ng-init="pagingOptions.pageSize = pagingOptions.pageSizes[0]" ng-model="pagingOptions.pageSize" ng-options="x for x in pagingOptions.pageSizes" ng-change="pageChanged()">         </select>         <span class="font-bold" translate="page.item">条</span>       </p>       <p class="col-sm-6 text-center">         <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="pageChanged()" max-size="maxSize" class="pagination-sm m-t-none m-b" boundary-links="true" rotate="false" num-pages="numPages" items-per-page="pagingOptions.pageSize"></pagination>       </p>       <p class="col-sm-3 text-right text-center-xs">                         <ul class="pagination pagination-sm m-t-none m-b-none">          <span class="font-bold" translate="page.no">第</span>{{bigCurrentPage}}          <span class="font-bold" translate="page.page">页</span>/           <span class="font-bold" translate="page.total">共</span>{{pagingOptions.totalPages}}           <span class="font-bold" translate="page.page">页</span>           <span class="font-bold" translate="page.go">到</span>           <input type="number" class="form-control w-sm inline" style="width:100px" ng-model="bigCurrentPage" ng-change="bigCurrentPageChanged()">           <span class="font-bold" translate="page.page">页</span>           <button type="submit" class="btn btn-dark" ng-click="pageChanged()">            <span class="font-bold" translate="common.go">GO</span>           </button>         </ul>       </p>     </p>   </footer>

觉得可用,就经常来吧!Javascript技巧 脚本宝典 欢迎评论哦! js技巧,巧夺天工,精雕玉琢。小宝典献丑了!

总结

以上是脚本宝典为你收集整理的

js实例教程-AngularJs分页组件pagination的用法详解

全部内容,希望文章能够帮你解决

js实例教程-AngularJs分页组件pagination的用法详解

所遇到的程序开发问题,欢迎加入QQ群277859234一起讨论学习。如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典网站推荐给程序员好友。 本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。

80%的人都看过