从文章看来,不写分号除了“好看”外也没啥好处吧。
【 在 zxdong262 (html5beta.com) 的大作中提到: 】
: semicolon-free : 只在 [ 和 ( 开头的代码等几种情况加上 ;
: [color=#A52A2A]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 tha
: ...................
--
FROM 59.57.163.*