开发者

jquery compress error

开发者 https://www.devze.com 2023-01-17 20:47 出处:网络
http://pastebin.com/WfsVZ4nU i got the followi开发者_JS百科ng error when i compressed my javascript code.When code is minified it is important not to miss any semicolon. Please check your code here a

http://pastebin.com/WfsVZ4nU

i got the followi开发者_JS百科ng error when i compressed my javascript code.


When code is minified it is important not to miss any semicolon. Please check your code here and put semicolon, where is needed (Lines 194 and 199).


Missing semi-colons on (at least) lines 194 and 199.


Try to use JSLint, it is a series of checks that parse your Javascript and look for potential problems.

At the beginning, it is painful to use as many errors appear.
But then, it becomes a very useful safety net, to write solid JS that compress well.

And usually it can be easily integrated in your IDE so you forget it.
eg: It can check the JS each times you save the file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号