JavaScript error (Uncaught SyntaxError: Unexpected end of input)

后端 未结 11 2103
天命终不由人
天命终不由人 2020-11-27 10:30

I have some JavaScript code that works in FireFox but not in Chrome or IE.

In the Chrome JS Console I get the follow error:

\"Uncaught Synta

11条回答
  •  一向
    一向 (楼主)
    2020-11-27 10:48

    I also got this error pointing to the end of the last script block on a page, only to realize the error was actually from clicking on an element with a onclick="pagename" instead of onclick="window.location='pagename'". It's not always a missing bracket!

提交回复
热议问题