JavaScript error (Uncaught SyntaxError: Unexpected end of input)

后端 未结 11 2138
天命终不由人
天命终不由人 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:45

    http://jsbeautifier.org/ is helpful to indent your minified JS code.

    Also, with Google Chrome you can use "pretty print". See the example screenshot below showing jquery.min.js from Stack Overflow nicely indented right from my browser :)

    enter image description here

提交回复
热议问题