如何摆脱错误:$ parse:lexerr Lexer?

时间:2016-03-07 08:01:43

标签: angularjs

我正在尝试使用$stateProvider创建动态状态 一切正常,但当我尝试创建州名standard_#_of_employees_1时,它会给我以下错误

Error: [$parse:lexerr] http://errors.angularjs.org/1.2.16/$parse/lexerr?p0=Unexpected%20next%20character%20&p1=s%209-9%20%5B%23%5D&p2=standard_%23_of_employees_1
t/<@http://localhost:3001/lib/angular.min.js:6:450
Nb.prototype.throwError@http://localhost:3001/lib/angular.min.js:159:266
Nb.prototype.lex@http://localhost:3001/lib/angular.min.js:158:72
$a.prototype.parse@http://localhost:3001/lib/angular.min.js:163:256
Xd/this.$get</<@http://localhost:3001/lib/angular.min.js:96:107
k@http://localhost:3001/lib/angular.min.js:102:227
Yd/this.$get</h.prototype.$watch@http://localhost:3001/lib/angular.min.js:103:380
yd</<@http://localhost:3001/lib/angular.min.js:197:75
J@http://localhost:3001/lib/angular.min.js:53:345
f@http://localhost:3001/lib/angular.min.js:46:399
f@http://localhost:3001/lib/angular.min.js:46:416
x/<@http://localhost:3001/lib/angular.min.js:46:67
Q/<@http://localhost:3001/lib/angular.min.js:47:303
u@http://localhost:3001/lib/angular.min.js:51:28
xd</<.link/<@http://localhost:3001/lib/angular.min.js:196:394
Yd/this.$get</h.prototype.$watchCollection/<@http://localhost:3001/lib/angular.min.js:105:244
Yd/this.$get</h.prototype.$digest@http://localhost:3001/lib/angular.min.js:106:309
Yd/this.$get</h.prototype.$apply@http://localhost:3001/lib/angular.min.js:109:285
f@http://localhost:3001/lib/angular.min.js:71:245
F@http://localhost:3001/lib/angular.min.js:75:408
ve/</x.onreadystatechange@http://localhost:3001/lib/angular.min.js:76:457

<form role="form" class="form-inline ng-pristine ng-valid" id="{{Question.QuestionKey| lowercase}}" name="demographic_form" ng-submit="next(Question)" ng-show="{{Question.QuestionKey| lowercase}}">

0 个答案:

没有答案