Uncaught SyntaxError: Unexpected end of input

Today, while I was working with jQuery I ran on this error “Uncaught SyntaxError: Unexpected end of input” while troubleshooting my code in Chrome. And since Chrome it didn’t report error on any specific line I had to Google for it :)

Uncaught SyntaxError: Unexpected end of input_第1张图片

And after opening few pages I found out that this error codes happens when you forget closing “}”. 

这个是多余的结束符分号 ;  或者 {、} 个数不能正确匹配造成的

你可能感兴趣的:(JavaScript)