Uncaught SyntaxError: Unexpected end of input

来源:互联网 发布:手机编程序软件 编辑:程序博客网 时间:2024/04/26 06:31

Uncaught SyntaxError: Unexpected end of input

之前有时候遇到这个错误回去找input,但是你会发现这个跟input没半毛钱关系,在代码众多的情况下,很难注意到真正的错误地方。

This particular error is one annoying fact about V8. In most cases your JavaScript is broken in some way. For example missing a } or something like that.

即这个错误时因为缺少结束符引起的 例如 } 或者其他符号

补充一点,如果你页面中有使用自己封装的ajax请求方法的话,要注意,服务器报错的时候,它也会提示Uncaught SyntaxError: Unexpected end of input

阅读全文
0 0