-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[zh-cn]: update the translation of the try-catch statement #21936
Conversation
Preview URLs (comment last updated: 2024-07-08 05:35:42) |
files/zh-cn/web/javascript/reference/statements/try...catch/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/statements/try...catch/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一些建议
--- | ||
|
||
{{jsSidebar("Statements")}} | ||
|
||
**`try...catch`** 语句标记要尝试的语句块,并指定一个出现异常时抛出的响应。 | ||
**`try...catch`** 语句由一个 `try` 块和 `catch` 块、`finally` 块或两者组成。首先执行 `try` 块中的代码,如果它抛出异常,则将执行 `catch` 块中的代码。`finally` 块中的代码将在控制流退出整个结构之前始终被执行。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
第一句再修改一下,现在的翻译不太能体现英文文档的那个意思
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last nit here 👀 @JasonLamv-t
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry for not getting back to you sooner. Quite busy this period.
files/zh-cn/web/javascript/reference/statements/try...catch/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/statements/try...catch/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/statements/try...catch/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/statements/try...catch/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/statements/try...catch/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/statements/try...catch/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/statements/try...catch/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/statements/try...catch/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/statements/try...catch/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: A1lo <yin199909@aliyun.com>
files/zh-cn/web/javascript/reference/statements/try...catch/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/statements/try...catch/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Description
As the title.
Motivation
Ditto.
Additional details
None.
Related issues and pull requests
#18266