摘要: CHAPTER 1 Basic Formatting(1)Indentation Levels: 使用tab对代码进行缩进,以此来体现代码的结构和层次。1 if( isMatch === true ) {2 var matchedPerson = "zj" ;3 for( var i = 0; i < 10; i ++ ) {4 // do something5 }6 }(2)Statement Termination: 在一行javascript语句的最后用分号结尾,以避免由于ASI(automatic ... 阅读全文
posted @ 2012-10-10 18:57 CyrilZhao 阅读(258) 评论(0) 推荐(0)