我的分页工作正常,但问题是脚本自动从index.html页面删除,什么可能会导致它删除?
发布于 2019-03-20 14:51:06
您必须使用类似于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是我的项目目录中这个实用程序文件的路径)
https://stackoverflow.com/questions/55254156
复制相似问题