在数组中设置希伯来字母并使用此数组在angularjs ui bootstrap中创建单选按钮时,我在控制台中为每个值获取此消息:
Error: [$parse:lexerr] Lexer Error: Unexpected next character at columns 0-0 [ב] in expression [בניברק].
http://errors.angularjs.org/1.2.16/$parse/lexerr?p0=Unexpected%20next%20character%20&p1=s%200-0%20%5B%D7%91%5D&p2=%D7%91%D7%A0%D7%99%D7%91%D7%A8%D7%A7
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:78:12
at Lexer.throwError (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:10015:11)
at Lexer.lex (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:9969:16)
at Parser.parse (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:10199:30)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:11048:37
at Scope.$eval (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12412:16)
at ngModelCtrl.$render (http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.12.0.js:363:100)
at Object.ngModelWatch (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:17342:14)
at Scope.$digest (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12243:40)
at Scope.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12516:24)
你可以在下面的plunker中看到这个: http://plnkr.co/edit/Y6AkNrd53ODMwBwUV7ru?p=preview
答案 0 :(得分:1)
似乎希伯来语没有任何问题。
我更改了你的plunker并将包含ng-repeat的标签更改为div,并将输入的ng-model设置为br(因为它设置为未定义的变量)。 现在它运作良好而没有错误。
You can see the plunker at [http://plnkr.co/edit/etuEopNOllXpzJbl9qXL?p=preview][1]