|
1 | 1 |
|
2 | | -# Manuals and specifications |
| 2 | +# 手册与规范 |
3 | 3 |
|
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 | +这本书是一本*教程*。它(撰写的)目的是帮助你逐渐掌握这门语言。但是一旦你已经熟悉了这门语言的基础,你就会需要其他资料。 |
5 | 5 |
|
6 | | -## Specification |
| 6 | +## 规范 |
7 | 7 |
|
8 | | -**The ECMA-262 specification** contains the most in-depth, detailed and formalized information about JavaScript. It defines the language. |
| 8 | +**ECMA-262规范**包含了大部分关于 JavaScript 的信息,这些信息是深入的、详细的、规范化的。这份规范明确规定了这门语言。 |
9 | 9 |
|
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 | +但由于是规范化的,它对于新手来说难以理解。因此如果你需要知道关于这门语言细节最权威的信息来源,这份规范就很适合你(去阅读)。但是它并不适合日常使用。 |
11 | 11 |
|
12 | | -The latest draft is at <https://tc39.es/ecma262/>. |
| 12 | +最新的规范草案在此 <https://tc39.es/ecma262/>。 |
13 | 13 |
|
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>。 |
15 | 15 |
|
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) 涵盖了其他规范(或者需要你去了解)。 |
17 | 17 |
|
18 | | -## Manuals |
| 18 | +## 手册 |
19 | 19 |
|
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 | +- **MDN(Mozilla)JavaScript 索引**是一本带有用例和其他信息的手册。它是一个获取关于个别语言函数、方法等深入信息的很好的来源。 |
21 | 21 |
|
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> 找到这本手册。 |
23 | 23 |
|
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` 函数。 |
25 | 25 |
|
| 26 | +- **MSDN**——一本微软的手册,它包含大量信息,其中包括 JavaScript(在里面经常被写成 JScript)。如果有人需要关于 Internet Explorer 的规范细节,最好请到:<http://msdn.microsoft.com/>。 |
26 | 27 |
|
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”这样的字条。 |
28 | 29 |
|
29 | | - Also, we can use an internet search with phrases such as "RegExp MSDN" or "RegExp MSDN jscript". |
| 30 | +## 功能支持 |
30 | 31 |
|
31 | | -## Feature support |
| 32 | +JavaScript 还是一门正在发展的语言,新的功能经常被添加。 |
32 | 33 |
|
33 | | -JavaScript is a developing language, new features get added regularly. |
| 34 | +如果想要获得一些关于浏览器和其他引擎的功能支持信息,请看: |
34 | 35 |
|
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> —— 一份列有语言功能以及引擎是否支持这些功能的表格。 |
36 | 38 |
|
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 | +所有这些资源在实际开发中都有用武之地,因为他们包含了语言细节以及它们被支持的程度等有价值的信息。 |
39 | 40 |
|
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 | +为了不要让你在真正需要深入了解特定功能的时候捉襟见肘,请记住它们(或者这一页)。 |
0 commit comments