2015-01-17 35 views
-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> 
+1

图。一个接一个地发表评论,直到停止。 – epascarello

+0

它可能是第二个(bootstrap)...因为每次我包含它我都会得到这个错误。但为什么它会返回HTML? – abcf

回答

2

错字:上的URL上面正在返回HTML代替的JavaScript的外面

https//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js 
    ^^ 
+0

这些错别字会杀了你,如果没有其他人,下次要小心;) – VPK

相关问题