gpt4 book ai didi

javascript - angularjs注入(inject)器模块错误

转载 作者:行者123 更新时间:2023-12-02 16:43:37 25 4
gpt4 key购买 nike

我正在尝试运行这个 AngularJS 教程示例,控制台显示:Uncaught Error: [$injector:modulerr] when using resangular

问题出在哪里?

<html >
<head>
<script src="../bower_components/angular/angular.min.js" type="text/javascript"></script>
<script src="../bower_components/underscore/underscore.js" type="text/javascrixpt"></script>
<script src="../bower_components/restangular/dist/restangular.js" type="text/javascrixpt"></script>
<script src="../bower_components/angular-route/angular-route.js" type="text/javascript"></script>
<script type="text/javascript" src="ang.js"></script>
<script src="../bower_components/jquery/dist/jquery.min.js"></script>


<script>
var app=angular.module('angular',['ngRoute','restangular']);
</script>

最佳答案

您需要检查 restangular.js 的路径。还要在 angular.js 之前包含 jquery.js

关于javascript - angularjs注入(inject)器模块错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27288669/

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