-1
我用我的所有脚本的CDN,但我得到的错误 “未捕获的SyntaxError:意外的标记<”未捕获的SyntaxError:意外的标记<CDN
我一直停留在这几个小时,和我不不知道为什么会有错误。
<!-- File: chapter10/simple-routing.html -->
<html>
<head>
<title>AngularJS Routing</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"> </script>
<script src="https//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.js"> </script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular-route.js"> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.8/angular-cookies.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.8/angular-resource.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.8/angular-sanitize.js"></script>
</head>
<body >
<h2>AngularJS Routing Application</h2>
</body>
</html>
图。一个接一个地发表评论,直到停止。 – epascarello
它可能是第二个(bootstrap)...因为每次我包含它我都会得到这个错误。但为什么它会返回HTML? – abcf