semicolon-free : 只在 [ 和 ( 开头的代码等几种情况加上 ;
Yes, it’s quite safe, and perfectly valid JS that every browser understands. Closure compiler, yuicompressor, packer, and jsmin all can properly minify it. There is no performance impact anywhere.
I am sorry that, instead of educating you, the leaders in this language community have given you lies and fear. That was shameful. I recommend learning how statements in JS are actually terminated (and in which cases they are not terminated), so that you can write code that you find beautiful.引用自
http://blog.izs.me/post/2353458699/an-open-letter-to-javascript-leaders-regarding可以参考
http://dailyjs.com/2012/04/19/semicolons/
http://blog.izs.me/post/2353458699/an-open-letter-to-javascript-leaders-regarding
https://npmjs.org/doc/coding-style.html
--
修改:zxdong262 FROM 218.17.63.*
FROM 218.17.63.*