Conversation
MartinsYong
suggested changes
Nov 8, 2020
|
|
||
| 让我们再回到异步 generator,来使这个需求成为可能。 | ||
|
|
||
| ## 异步 generator |
Member
There was a problem hiding this comment.
原文是:## Async generators (finally)
🧐
Member
Author
There was a problem hiding this comment.
@MartinsYong 这里我不知道原文的 finally 是什么意思,就删了。这里可能补回去比较好?
|
Please make the requested changes. After it, add a comment "/done". |
MartinsYong
suggested changes
Nov 11, 2020
|
Please make the requested changes. After it, add a comment "/done". |
MartinsYong
reviewed
Nov 14, 2020
| 我们可以通过将 `async` 特性显式地修改为 `false`,以将脚本的加载顺序更改为文档顺序(就像常规脚本一样): | ||
|
|
||
| 例如,这里我们添加了两个脚本。在没有设置 `script.async=false` 时,它们执行顺序为加载优先顺序(即 `small.js` 可能先执行)。但是当设置了 `script.async=false` 后,脚本执行顺序就变成了“脚本在文档中的顺序”: | ||
| 在这个例子中,`loadScript(src)` 函数添加了一个脚本,并将 `async` 设置为了 `false`。 |
Member
There was a problem hiding this comment.
这里原文应该需要加个 below:
In the example below
Co-authored-by: Martin <a545067127@outlook.com>
Co-authored-by: Martin <a545067127@outlook.com>
Member
Author
|
辛苦啦,目前所有意见均已更改完毕,等待进一步意见~ |
MartinsYong
suggested changes
Nov 14, 2020
| @@ -243,23 +243,29 @@ demoElem.innerHTML = `下面是一个代码段: | |||
| 这些方法可以一起使用,如下所示: | |||
|
Please make the requested changes. After it, add a comment "/done". |
Co-authored-by: Martin <a545067127@outlook.com>
Member
Author
|
DONE,辛苦啦~ |
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.
Update to 2020-10-15 from upstream.