我的分页效果很好,但问题是该脚本已从index.html页面自动删除,可能是什么导致它删除了?
答案 0 :(得分:0)
您必须使用 cdn 种方式将与此分页实用程序关联的脚本标签添加到您的index.html
文件中
<script src="https://raw.githubusercontent.com/michaelbromley/angularUtils/master/src/directives/pagination/dirPagination.js"></script>
或,方法是在项目目录中指定此插件的本地路径,例如
<script src="bower_components/angularUtils-pagination/dirPagination.js"></script>
(其中 bower_components / angularUtils-pagination / dirPagination.js 是我在项目目录中该实用程序文件的路径)