Skip to content

Commit bc9a256

Browse files
author
Adam
committed
ä¿翻译一些标题
1 parent 28a549f commit bc9a256

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[原文章: https://github.com/airbnb/javascript](https://github.com/airbnb/javascript)
2+
3+
注:本人根据自己的开发习惯删除和修改了部分规范
4+
15
# JavaScript规范
26

37
## <a name='TOC'>内容列表</a>
@@ -887,7 +891,7 @@
887891
});
888892
```
889893

890-
- 命名私有属性时前面加个下划线 `_`
894+
- 命名私有属性时前面加个下划线 `_`
891895

892896
```javascript
893897
// bad
@@ -1104,7 +1108,7 @@
11041108
- 开始,这保证了如果一个有问题的模块忘记包含最后的分号在合并后不会出现错误
11051109
- 这个文件应该以驼峰命名,并在同名文件夹下,同时导出的时候名字一致
11061110
- 加入一个名为noConflict()的方法来设置导出的模块为之前的版本并返回它
1107-
- 总是在模块顶部声明 `'use strict';`
1111+
- 总是在模块顶部声明 `'use strict';`
11081112
11091113
```javascript
11101114
// fancyInput/fancyInput.js
@@ -1170,7 +1174,7 @@
11701174
```
11711175
11721176
- 对DOM查询使用级联的 `$('.sidebar ul')` 或 `$('.sidebar ul')`,[jsPerf](http://jsperf.com/jquery-find-vs-context-sel/16)
1173-
- 对有作用域的jQuery对象查询使用 `find`
1177+
- 对有作用域的jQuery对象查询使用 `find`
11741178
11751179
```javascript
11761180
// bad
@@ -1219,27 +1223,26 @@
12191223
12201224
## <a name='resources'>资源</a>
12211225
1222-
12231226
**Read This**
12241227
12251228
- [Annotated ECMAScript 5.1](http://es5.github.com/)
12261229
1227-
**Other Styleguides**
1230+
**其它规范**
12281231
12291232
- [Google JavaScript Style Guide](http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml)
12301233
- [jQuery Core Style Guidelines](http://docs.jquery.com/JQuery_Core_Style_Guidelines)
12311234
- [Principles of Writing Consistent, Idiomatic JavaScript](https://github.com/rwldrn/idiomatic.js/)
12321235
1233-
**Other Styles**
1236+
**其它风格**
12341237
12351238
- [Naming this in nested functions](https://gist.github.com/4135065) - Christian Johansen
12361239
- [Conditional Callbacks](https://github.com/airbnb/javascript/issues/52)
12371240
1238-
**Further Reading**
1241+
**阅读更多**
12391242
12401243
- [Understanding JavaScript Closures](http://javascriptweblog.wordpress.com/2010/10/25/understanding-javascript-closures/) - Angus Croll
12411244
1242-
**Books**
1245+
**书籍**
12431246
12441247
- [JavaScript: The Good Parts](http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742) - Douglas Crockford
12451248
- [JavaScript Patterns](http://www.amazon.com/JavaScript-Patterns-Stoyan-Stefanov/dp/0596806752) - Stoyan Stefanov
@@ -1250,8 +1253,9 @@
12501253
- [Pro JavaScript Techniques](http://www.amazon.com/Pro-JavaScript-Techniques-John-Resig/dp/1590597273) - John Resig
12511254
- [Smashing Node.js: JavaScript Everywhere](http://www.amazon.com/Smashing-Node-js-JavaScript-Everywhere-Magazine/dp/1119962595) - Guillermo Rauch
12521255
1253-
**Blogs**
1256+
**博客**
12541257
1258+
- [Adam Lu](http://adamlu.com/)
12551259
- [DailyJS](http://dailyjs.com/)
12561260
- [JavaScript Weekly](http://javascriptweekly.com/)
12571261
- [JavaScript, JavaScript...](http://javascriptweblog.wordpress.com/)
@@ -1293,13 +1297,13 @@
12931297
- :de: **German**: [timofurrer/javascript-style-guide](https://github.com/timofurrer/javascript-style-guide)
12941298
- :jp: **Japanese**: [mitsuruog/javacript-style-guide](https://github.com/mitsuruog/javacript-style-guide)
12951299
- :br: **Portuguese**: [armoucar/javascript-style-guide](https://github.com/armoucar/javascript-style-guide)
1296-
- :zh: **Chinese**: [adamlu/javascript-style-guide](https://github.com/adamlu/javascript-style-guide)
1300+
- :cn: **Chinese**: [adamlu/javascript-style-guide](https://github.com/adamlu/javascript-style-guide)
12971301

1298-
## <a name='guide-guide'>The JavaScript Style Guide Guide</a>
1302+
## <a name='guide-guide'>JavaScript风格指南</a>
12991303

13001304
- [Reference](https://github.com/airbnb/javascript/wiki/The-JavaScript-Style-Guide-Guide)
13011305

1302-
## <a name='authors'>Contributors</a>
1306+
## <a name='authors'>贡献者</a>
13031307

13041308
- [View Contributors](https://github.com/airbnb/javascript/graphs/contributors)
13051309

0 commit comments

Comments
 (0)