javascript
文章平均质量分 86
gedoua
这个作者很懒,什么都没留下…
展开
-
CHAPTER 2 Lexical Structure
[color=blue]2.1 Character Set[/color] Javascript采用Unicode编码 [color=blue]2.1.1 Case Sensitivity[/color] Javascript是大小写敏感的语言 [color=blue]2.1.2 Whitespace, Line Breaks, and Format Control Cha...原创 2012-04-02 13:05:21 · 117 阅读 · 0 评论 -
CHAPTER 3 Types, Values, and Variables
[color=blue]3.1 Numbers[/color] 不像很多的语言,javaScript不区分integer类型和浮点类型。所有的数字都用浮点类型。Javascript用64bit浮点类型来表示。 十六进制: 0xff // 15*16 + 15 = 255 (base 10) 八进制: 0377 // 3*64 + 7*8 + 7 = 255 (base 10) ...原创 2012-04-02 14:53:35 · 229 阅读 · 0 评论 -
CHAPTER 4 Expressions and Operators
[color=blue]4.1 Primary Expressions[/color] 1.23 // A number literal "hello" // A string literal /pattern/ // A regular expression literal true // Evalutes to the boolean true value false // Ev...原创 2012-04-03 01:23:57 · 91 阅读 · 0 评论 -
CHAPTER 5 Statements
[color=blue]5.5.4 for/in[/color] for (variable in object) statement for(var i = 0; i < a.length; i++) // Assign array indexes to variable i console.log(a[i]); // Print the value of each array ...原创 2012-04-03 11:06:08 · 74 阅读 · 0 评论