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

posted @ 2017-09-13 09:25  FarmanKKK  阅读(382)  评论(0编辑  收藏  举报