Skip to content

Commit 69a434e

Browse files
committed
Half way
1 parent 7518111 commit 69a434e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

es5/README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
77

88
1. [类型](#types)
99
1. [对象](#objects)
10-
1. [数字](#arrays)
10+
1. [数组](#arrays)
1111
1. [字符串](#strings)
1212
1. [函数](#functions)
1313
1. [属性](#properties)
@@ -16,7 +16,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
1616
1. [比较运算符 & 等号](#comparison-operators--equality)
1717
1. [](#blocks)
1818
1. [注释](#comments)
19-
1. [Whitespace](#whitespace)
19+
1. [空白](#whitespace)
2020
1. [Commas](#commas)
2121
1. [Semicolons](#semicolons)
2222
1. [Type Casting & Coercion](#type-casting--coercion)
@@ -37,7 +37,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
3737
1. [Contributors](#contributors)
3838
1. [License](#license)
3939

40-
## 类型
40+
## <a name="types">类型</a>
4141

4242
- **原始值**: 存取直接作用于它自身。-
4343

@@ -72,7 +72,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
7272

7373
**[⬆ 回到顶部](#table-of-contents)**
7474

75-
## 对象
75+
## <a name="objects">对象</a>
7676

7777
- 使用直接量创建对象。
7878

@@ -121,7 +121,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
121121

122122
**[⬆ 回到顶部](#table-of-contents)**
123123

124-
## 数组
124+
## <a name="arrays">数组</a>
125125

126126
- 使用直接量创建数组。
127127

@@ -174,7 +174,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
174174
**[⬆ 回到顶部](#table-of-contents)**
175175

176176

177-
## 字符串
177+
## <a name="strings">字符串</a>
178178

179179
- 使用单引号 `''` 包裹字符串。
180180

@@ -259,7 +259,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
259259
**[⬆ 回到顶部](#table-of-contents)**
260260

261261

262-
## 函数
262+
## <a name="functions">函数</a>
263263

264264
- 函数表达式:
265265

@@ -318,7 +318,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
318318

319319

320320

321-
## 属性
321+
## <a name="properties">属性</a>
322322

323323
- 使用 `.` 来访问对象的属性。
324324

@@ -353,7 +353,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
353353
**[⬆ 回到顶部](#table-of-contents)**
354354

355355

356-
## 变量
356+
## <a name="variables">变量</a>
357357

358358
- 总是使用 `var` 来声明变量。不这么做将导致产生全局变量。我们要避免污染全局命名空间。
359359

@@ -475,7 +475,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
475475
**[⬆ 回到顶部](#table-of-contents)**
476476

477477

478-
## 提升
478+
## <a name="hoisting">提升</a>
479479

480480
- 变量声明会提升至作用域顶部,但赋值不会。
481481

@@ -559,7 +559,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
559559

560560

561561

562-
## 比较运算符 & 等号
562+
## <a name="comparison-operators--equality">比较运算符 & 等号</a>
563563

564564
- 优先使用 `===``!==` 而不是 `==``!=`.
565565
- 条件表达式例如 `if` 语句通过抽象方法 `ToBoolean` 强制计算它们的表达式并且总是遵守下面的规则:
@@ -607,7 +607,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
607607
**[⬆ 回到顶部](#table-of-contents)**
608608

609609

610-
##
610+
## <a name="blocks"></a>
611611

612612
- 使用大括号包裹所有的多行代码块。
613613

@@ -658,7 +658,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
658658
**[⬆ 回到顶部](#table-of-contents)**
659659

660660

661-
## 注释
661+
## <a name="comments">注释</a>
662662

663663
- 使用 `/** ... */` 作为多行注释。包含描述、指定所有参数和返回值的类型和值。
664664

@@ -751,7 +751,7 @@ Airbnb JavaScript 代码规范,[英文版](https://github.com/airbnb/javascrip
751751
**[⬆ 回到顶部](#table-of-contents)**
752752

753753

754-
## 空白
754+
## <a name="whitespace">空白</a>
755755

756756
- 使用 2 个空格作为缩进。
757757

0 commit comments

Comments
 (0)