ADD: translation of some missing contents#811
Merged
leviding merged 38 commits intojavascript-tutorial:masterfrom Sep 22, 2020
zomb-676:translate
Merged
ADD: translation of some missing contents#811leviding merged 38 commits intojavascript-tutorial:masterfrom zomb-676:translate
leviding merged 38 commits intojavascript-tutorial:masterfrom
zomb-676:translate
Conversation
MartinsYong
suggested changes
Aug 15, 2020
|
Please make the requested changes. After it, add a comment "/done". |
Member
|
@zomb-676 有一些修改建议请看一下,谢谢~ |
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Contributor
Author
不是我想刷commit,有办法一次性同意所有commit suggestion么) |
Member
有个 batch 的功能按钮可以点击,然后都需要的 suggestion 都点完之后,然后就点一起 commit 就行。下次可以留意一下~ |
Member
|
@zomb-676 |
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Contributor
Author
|
/done |
MartinsYong
suggested changes
Sep 11, 2020
Member
MartinsYong
left a comment
There was a problem hiding this comment.
还有第 336、341 行注释需要翻译,那里我添加不了 suggestion
| - 对于派生类,在调用 `super()` 后立刻初始化。 | ||
|
|
||
| In our case, `Rabbit` is the derived class. There's no `constructor()` in it. As said previously, that's the same as if there was an empty constructor with only `super(...args)`. | ||
| 在例子中,`Rabbit` 是派生类,里面没有 `constructor()`。正如先前所说,这相当于一个里面只有`super(...args)`的空构造器。 |
Member
There was a problem hiding this comment.
Suggested change
| 在例子中,`Rabbit` 是派生类,里面没有 `constructor()`。正如先前所说,这相当于一个里面只有`super(...args)`的空构造器。 | |
| 在例子中,`Rabbit` 是派生类,里面没有 `constructor()`。正如先前所说,这相当于一个里面只有 `super(...args)` 的空构造器。 |
| 在例子中,`Rabbit` 是派生类,里面没有 `constructor()`。正如先前所说,这相当于一个里面只有`super(...args)`的空构造器。 | ||
|
|
||
| So, `new Rabbit()` calls `super()`, thus executing the parent constructor, and (per the rule for derived classes) only after that its class fields are initialized. At the time of the parent constructor execution, there are no `Rabbit` class fields yet, that's why `Animal` fields are used. | ||
| 所以,`new Rabbit()` 调用了 `super()`,因此它执行了父类构造器,并且(根据派生类规则)只有在此之后,它的类字段才被初始化。在父类构造器被执行的时候,`Rabbit` 还没有自己的类字段,这就是为什么`Animal` 类字段被使用了。 |
Member
There was a problem hiding this comment.
Suggested change
| 所以,`new Rabbit()` 调用了 `super()`,因此它执行了父类构造器,并且(根据派生类规则)只有在此之后,它的类字段才被初始化。在父类构造器被执行的时候,`Rabbit` 还没有自己的类字段,这就是为什么`Animal` 类字段被使用了。 | |
| 所以,`new Rabbit()` 调用了 `super()`,因此它执行了父类构造器,并且(根据派生类规则)只有在此之后,它的类字段才被初始化。在父类构造器被执行的时候,`Rabbit` 还没有自己的类字段,这就是为什么 `Animal` 类字段被使用了。 |
|
Please make the requested changes. After it, add a comment "/done". |
Member
|
已经合并,感谢各位的翻译和校对 ❤️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目标章节:1-js/09-classes/01-class和1-js/09-classes/02-class-inheritance
当前上游最新 commit:javascript-tutorial/en.javascript.info@da9849d#diff-619f8744f6687e607b8859843952d6b2%E5%92%8C
javascript-tutorial/en.javascript.info@26bf51a#diff-bab52830ec6d1a34780283a014963061
本 PR 所做更改如下:粗糙的翻译了下原本未翻译的内容
新增翻译未翻,无参考