选择按钮时—错误:[$ parse:lexerr]

问题描述 投票:0回答:1

此错误消息是什么,它表示什么?

选择Web应用程序上的按钮时,出现以下错误消息:

Error: [$parse:lexerr] <http://errors.angularjs.org/1.6.6/$parse/lexerr?p0=Unterminated%20quote&p1=s%2074-78%20%5B%22%7D')%5D&p2=vm.initSource('%7B%22BaseId%22%3A1127%2C%22Basename%22%3A%22Chaul%20End%20Lane%20Children's%20Centre%22%7D')>

图像也可以在下面看到:

Angular error message

当我访问以下URL时:

https://code.angularjs.org/1.6.6/docs/error/$parse/lexerr?p0=Unterminated%20quote&p1=s%2074-78%20%5B%22%7D%27)%5D&p2=vm.initSource(%27%7B%22BaseId%22:1127,%22Basename%22:%22Chaul%20End%20Lane%20Children%27s%20Centre%22%7D

它指出,当表达式具有词法错误,例如格式错误的数字(0.5e-)或无效的unicode转义符时,就会发生错误。这是什么意思?

我是菜鸟,所以请多加指教!

谢谢:)

angularjs error-handling xml-parsing lexer
1个回答
1
投票

错误说明很清楚:

表达式错误:表达式[vm.initSource('{“ BaseId”:1127,“ Basename”:“ Chaul End Lane Children's Centre”}中的表达式[74.78 [“}')栏的不终止引号]]]]

字符串参数中缺少结尾引号'

© www.soinside.com 2019 - 2024. All rights reserved.