0

加载 angularjs 时出现奇怪的错误。我试图在网上搜索,但没有找到。你知道那是什么意思吗?

Error: Syntax Error: Token ',' is an unexpected token at column 5 of the expression ['ar', 'Arabic'),
...
('zh-tw', 'Traditional Chinese'].
at Error (unknown source)
at throwError (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:5845:11)
at parser (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:5839:5)
at http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:6402:29
at http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:4822:27
at addTextInterpolateDirective (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:4406:27)
at collectDirectives (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:3908:11)
at compileNodes (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:3798:21)
at compileNodes (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:3806:14)
at compileNodes (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:3806:14) angular-1.0.0rc11.js:5541
$get
4

1 回答 1

1

经过数小时的反复试验,终于发现这里发生了什么。认为值得与你们分享,这样您在面对同样的问题时就不会浪费时间。

((问题是我))在配置interpolateProvider. 将开始和结束符号更改为另一个符号后,错误就消失了。

于 2012-06-12T08:27:46.070 回答