-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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 translation of String.raw() #14779
Conversation
Preview URLs Flaws (2)URL:
External URLs (1)URL:
(comment last updated: 2023-08-02 16:32:50) |
files/zh-cn/web/javascript/reference/global_objects/string/raw/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/global_objects/string/raw/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/global_objects/string/raw/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/global_objects/string/raw/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/global_objects/string/raw/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/global_objects/string/raw/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/global_objects/string/raw/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/global_objects/string/raw/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: A1lo <[email protected]>
|
||
`String.raw()` 是唯一一个内置的模板字符串标签函数,因为它太常用了。不过它并没有什么特殊能力,你自己也可以实现一个和它功能一模一样的标签函数。 | ||
|
||
> **警告:** 不应直接将 `String.raw` 作为“标识”标签。请参见[构建身份标签](#构建身份标签)以了解如何实现此操作。 |
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.
Could you also update the rest of "identity tag" (to "标识标签").
|
||
// 正常情况下,你也许不需要将 String.raw() 当作函数调用。 | ||
// 但是为了模拟 `t${0}e${1}s${2}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.
+1
files/zh-cn/web/javascript/reference/global_objects/string/raw/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/web/javascript/reference/global_objects/string/raw/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.
Thanks 🙏
Description
Same as the title.
Motivation
Ditto.
Additional details
None.
Related issues and pull requests
#13975