Uncaught SyntaxError - unexpected end of input

简介: Created by Jerry Wang, last modified on Sep 15, 2014

Created by Jerry Wang, last modified on Sep 15, 2014

Chrome console里报如下error message:

image.png

原因是application code的Javascript里有一行用//注释掉:

但是framework 将application 里的Javascript 重新处理后,会将application中的换行符全部删除,这样// 后面的所有code也会被merge成同一行,被// 所注释。将// 使用/* */ 替换即可。image.png

相关文章
ambiguous call to overloaded function
ambiguous call to overloaded function
|
2月前
|
JSON JavaScript 前端开发
Uncaught SyntaxError: Invalid or unexpected token
Uncaught SyntaxError: Invalid or unexpected token
29 0
|
5月前
|
Unix Linux Shell
syntax error: unexpected end of file
syntax error: unexpected end of file
21 0
|
11月前
Uncaught TypeError: l.push is not a function
Uncaught TypeError: l.push is not a function
|
JavaScript
成功解决:Uncaught TypeError: Cannot read property 'search' of undefined
成功解决:Uncaught TypeError: Cannot read property 'search' of undefined
|
机器学习/深度学习 Windows
raise RuntimeError(‘Error(s) in loading state_dict for {}:\n\t{}‘.format( RuntimeError: Error(s)..报错
即load_state_dict(fsd,strict=False) 属性strict;当strict=True,要求预训练练权重层数的键值与新构建的模型中的权重层数名称完全吻合;
1485 0
|
Dart 前端开发 JavaScript
Syntax Error: TypeError: this.getOptions is not a function
Syntax Error: TypeError: this.getOptions is not a function
514 0
Syntax Error: TypeError: this.getOptions is not a function
|
计算机视觉
成功解决TypeError: __init__() got an unexpected keyword argument 'n_iterations'
成功解决TypeError: __init__() got an unexpected keyword argument 'n_iterations'
|
XML JSON 前端开发
ajaxfileupload上传文件和报错syntaxerror: Unexpected end of input(…)
ajaxfileupload上传文件和报错syntaxerror: Unexpected end of input(…)
226 0
ajaxfileupload上传文件和报错syntaxerror: Unexpected end of input(…)
|
Python
SyntaxError: Missing parentheses in call to 'print'
SyntaxError: Missing parentheses in call to 'print'
138 0