translated-content
translated-content copied to clipboard
[zh-cn]: Update the translation of public class fields in class section
Description
Motivation
Additional details
Related issues and pull requests
Public class fields part of #18329
Preview URLs
External URLs (2)
URL: /zh-CN/docs/Web/JavaScript/Reference/Classes/Public_class_fields
Title: 公有类字段
- https://babeljs.io/ (1 time) (Note! This may be a new URL 👀)
- https://www.typescriptlang.org/ (1 time) (Note! This may be a new URL 👀)
(comment last updated: 2024-05-08 02:33:29)
这里应该特指“此
this
并非实例中的this
”,其用于指代当前的类定义本身,而非实例。我觉得这与 https://github.com/mdn/translated-content/commit/02d6f5008ae6a906bc2275a2295323e22b1492ba 中的翻译其实类似
@yin1999 问题是,这个 this
实际上并不指向类本身,而是作用域的 this。相当于,类还不存在,正在借助外部的 this 创建类。
这里应该特指“此
this
并非实例中的this
”,其用于指代当前的类定义本身,而非实例。我觉得这与 02d6f50 中的翻译其实类似@yin1999 问题是,这个
this
实际上并不指向类本身,而是作用域的 this。相当于,类还不存在,正在借助外部的 this 创建类。
是的,我理解错了 :+1:
edit: 已参照 02d6f5008ae6a906bc2275a2295323e22b1492ba 进行修改