世界上有两种js编码风格,一种写; 一种不写;
(不能被压缩?没这回事)
http://blog.izs.me/post/2353458699/an-open-letter-to-javascript-leaders-regarding
http://dailyjs.com/2012/01/19/semicolons/
tjholowaychuk o 3 years ago
yeah bottom-line is that the only ugly code is inconsistent code, if you are consistent between projects then it's great to experiment and evolve your style choices. Almost any language CAN look good, it's just the people writing it that make it look bad
tj大神说保持一致的风格就好。
【 在 hgoldfish 的大作中提到: 】
: 1. js 不打 ; 了
: 2. 早早就写了 return 语句:
: return $scope.brand='ksldf', $scope.user={}
: ...................
--
FROM 113.106.72.*