gpt4 book ai didi

javascript - 无法解决 index.html 中的错误

转载 作者:行者123 更新时间:2023-11-30 09:54:51 25 4
gpt4 key购买 nike

err: file:///F:/test/controller/addcontrollers Failed to load resource: net::ERR_FILE_NOT_FOUND file:///F:/test/controller/showcontrollers Failed to load resource: net::ERR_FILE_NOT_FOUND

angular.min.js:37Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.4.4/$injector/modulerr?p0=app&p1=Error%3A%20%…2F%2F%2FF%3A%2Fworksapce%2Fangular%2Ftest%2Fjs%2Fangular.min.js%3A40%3A435)

index.html

<div class="container">
<div class="row">
<div class="col-md-3">
<ul class="nav">
<li><a href="#AddOrders"> Add Order </a></li>
<li><a href="#ShowOrders"> Show Order </a></li>
</ul>
</div>
<div class="col-md-9">
<div ng-view></div>
</div>
</div>
</div>
</script>
<script type="text/javascript" src="js/angular.min.js"></script>
<script type="text/javascript" src="app.js"></script>
<script src="controller/addcontrollers"></script>
<script src="controller/showcontrollers"></script>

最佳答案

它们需要是 .js 文件。您正在尝试像在节点中一样加载它们:-)

<script src="controller/addcontrollers.js"></script>
<script src="controller/showcontrollers.js"></script>

关于javascript - 无法解决 index.html 中的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34553878/

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