Skip to content

Commit d7e8b27

Browse files
committed
resolve review changes
1 parent b297ee2 commit d7e8b27

3 files changed

Lines changed: 24 additions & 25 deletions

File tree

1-js/01-getting-started/1-intro/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ JavaScript 在刚诞生的时候,它的名字叫 “LiveScript”。但是因
3636
3737
1. 引擎(通常嵌入在浏览器中)读取(“解析”)脚本。
3838
2. 然后将脚本转化(“编译”)为机器语言。
39-
3. 然后就这机器代码飞速地运行
39+
3. 然后这机器语言代码快速地运行
4040
4141
引擎会对流程中的每个阶段都进行优化。它甚至可以在运行时监视编译的脚本,分析数据流并根据这些对机器代码应用优化。最后,脚本会执行地非常快。
4242
```
@@ -73,7 +73,7 @@ JavaScript 的能力依赖于它执行的环境。例如:[Node.js](https://wik
7373
这就是“同源策略”。为了解决不同标签页交互的问题,两个同源的网站必须****包含一些特殊的 JavaScript 代码,才能够实现数据交换。
7474

7575
这个限制也是为了用户的信息安全。例如,用户打开的 `http://anysite.com` 网页的 JavaScript 不能访问 `http://gmail.com`(另外一个标签页打开的网页)也不能从那里窃取信息。
76-
- JavaScript 通过互联网可以轻松地和服务器(当前网页域名的服务器)通讯。但是从其他网站/域的服务器中获取数据的功能是受限的,需要服务器(在 HTTP 头中)添加某些参数。这也是为了用户的数据安全。
76+
- JavaScript 通过互联网可以轻松地和服务器(当前网页域名的服务器)通讯。但是从其他网站/域的服务器中获取数据的能力是受限的,需要服务器(在 HTTP 头中)添加某些参数。这也是为了用户的数据安全。
7777

7878
![](limitations.png)
7979

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,41 @@
11

2-
# Manuals and specifications
2+
# 手册与规范
33

4-
This book is a *tutorial*. It aims to help you gradually learn the language. But once you're familiar with the basics, you'll need other sources.
4+
这本书是一本*教程*。它(撰写的)目的是帮助你逐渐掌握这门语言。但是一旦你已经熟悉了这门语言的基础,你就会需要其他资料。
55

6-
## Specification
6+
## 规范
77

8-
**The ECMA-262 specification** contains the most in-depth, detailed and formalized information about JavaScript. It defines the language.
8+
**ECMA-262规范**包含了大部分关于 JavaScript 的信息,这些信息是深入的、详细的、规范化的。这份规范明确规定了这门语言。
99

10-
But being that formalized, it's difficult to understand at first. So if you need the most trustworthy source of information about the language details, the specification is the right place. But it's not for everyday use.
10+
但由于是规范化的,它对于新手来说难以理解。因此如果你需要知道关于这门语言细节最权威的信息来源,这份规范就很适合你(去阅读)。但是它并不适合日常使用。
1111

12-
The latest draft is at <https://tc39.es/ecma262/>.
12+
最新的规范草案在此 <https://tc39.es/ecma262/>
1313

14-
To read about new bleeding-edge features, that are "almost standard", see proposals at <https://github.com/tc39/proposals>.
14+
想要知道最新最前沿且将近要“标准化”的功能,请看这里的提案 <https://github.com/tc39/proposals>
1515

16-
Also, if you're in developing for the browser, then there are other specs covered in the [second part](info:browser-environment) of the tutorial.
16+
还有,如果你正在为浏览器开发,那么本教程 [第二节](info:browser-environment) 涵盖了其他规范(或者需要你去了解)。
1717

18-
## Manuals
18+
## 手册
1919

20-
- **MDN (Mozilla) JavaScript Reference** is a manual with examples and other information. It's great to get in-depth information about individual language functions, methods etc.
20+
- **MDNMozillaJavaScript 索引**是一本带有用例和其他信息的手册。它是一个获取关于个别语言函数、方法等深入信息的很好的来源。
2121

22-
One can find it at <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference>.
22+
你可以在 <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference> 找到这本手册。
2323

24-
Although, it's often best to use an internet search instead. Just use "MDN [term]" in the query, e.g. <https://google.com/search?q=MDN+parseInt> to search for `parseInt` function.
24+
虽然,通常(来说)利用互联网搜索是个最好的选择。只需在查询时输入“MDN [关键字]”,例如 <https://google.com/search?q=MDN+parseInt> 搜索 `parseInt` 函数。
2525

26+
- **MSDN**——一本微软的手册,它包含大量信息,其中包括 JavaScript(在里面经常被写成 JScript)。如果有人需要关于 Internet Explorer 的规范细节,最好请到:<http://msdn.microsoft.com/>
2627

27-
- **MSDN** – Microsoft manual with a lot of information, including JavaScript (often referrerd to as JScript). If one needs something specific to Internet Explorer, better go there: <http://msdn.microsoft.com/>.
28+
我们还可以在使用互联网搜索时利用如“RegExp MSDN”或“RegExp MSDN jscript”这样的字条。
2829

29-
Also, we can use an internet search with phrases such as "RegExp MSDN" or "RegExp MSDN jscript".
30+
## 功能支持
3031

31-
## Feature support
32+
JavaScript 还是一门正在发展的语言,新的功能经常被添加。
3233

33-
JavaScript is a developing language, new features get added regularly.
34+
如果想要获得一些关于浏览器和其他引擎的功能支持信息,请看:
3435

35-
To see their support among browser-based and other engines, see:
36+
- <http://caniuse.com> —— 每个功能都列有一个支持信息表格,例如想看哪个引擎支持现代加密(cryptography)函数:<http://caniuse.com/#feat=cryptography>
37+
- <https://kangax.github.io/compat-table> —— 一份列有语言功能以及引擎是否支持这些功能的表格。
3638

37-
- <http://caniuse.com> - per-feature tables of support, e.g. to see which engines support modern cryptography functions: <http://caniuse.com/#feat=cryptography>.
38-
- <https://kangax.github.io/compat-table> - a table with language features and engines that support those or don't support.
39+
所有这些资源在实际开发中都有用武之地,因为他们包含了语言细节以及它们被支持的程度等有价值的信息。
3940

40-
All these resources are useful in real-life development, as they contain valuable information about language details, their support etc.
41-
42-
Please remember them (or this page) for the cases when you need in-depth information about a particular feature.
41+
为了不要让你在真正需要深入了解特定功能的时候捉襟见肘,请记住它们(或者这一页)。

1-js/01-getting-started/3-code-editors/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## IDE
88

9-
[IDE](https://en.wikipedia.org/wiki/Integrated_development_environment)(集成开发环境)是用于管理整个项目具有强大功能的编辑器。顾名思义,它不仅仅是一个编辑器,而且还是个完全的开发环境
9+
[IDE](https://en.wikipedia.org/wiki/Integrated_development_environment)(集成开发环境)是用于管理整个项目具有强大功能的编辑器。顾名思义,它不仅仅是一个编辑器,而且还是个完整的开发环境
1010

1111
IDE 加载项目(通常包含多个文件),并且允许在不同文件之间切换。IDE 还提供基于项目的自动补全功能,集成版本控制(如 [git](https://git-scm.com/))、集成测试环境等一些其他“项目层面”的东西。
1212

0 commit comments

Comments
 (0)