gpt4 book ai didi

javascript - Bootstrap 分页不适用于 angular-ui-bootstrap/2.5.0/ui-bootstrap-tpls.js

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:59:37 26 4
gpt4 key购买 nike

因为this thread ,我需要使用高版本的ui-bootstrap-tpls.js。但是,我意识到这禁用了 bootstrap pagination,它适用于较低版本的 ui-bootstrap-tpls.js

例如,this pagination works使用 https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.11.0/ui-bootstrap-tpls.js,而 https://cdnjs。 cloudflare.com/ajax/libs/angular-ui-bootstrap/2.5.0/ui-bootstrap-tpls.js does not work .

有人知道我能做什么吗?

最佳答案

试试这个 plunk与:

<ul uib-pagination total-items="totalItems" ng-model="currentPage" items-per-page="itemsPerPage" ng-change="pageChanged()"></ul>

代替:

<pagination total-items="totalItems" items-per-page="itemsPerPage" ng-model="currentPage" ng-change="pageChanged()"></pagination>

关于javascript - Bootstrap 分页不适用于 angular-ui-bootstrap/2.5.0/ui-bootstrap-tpls.js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43625546/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com