translated-content icon indicating copy to clipboard operation
translated-content copied to clipboard

[zh-cn]: Update the translation of public class fields in class section

Open tianyeeT opened this issue 9 months ago • 1 comments

Description

Motivation

Additional details

Related issues and pull requests

Public class fields part of #18329

tianyeeT avatar Apr 29 '24 15:04 tianyeeT

Preview URLs

External URLs (2)

URL: /zh-CN/docs/Web/JavaScript/Reference/Classes/Public_class_fields Title: 公有类字段

(comment last updated: 2024-05-08 02:33:29)

github-actions[bot] avatar Apr 29 '24 16:04 github-actions[bot]

这里应该特指“此 this 并非实例中的 this”,其用于指代当前的类定义本身,而非实例。我觉得这与 https://github.com/mdn/translated-content/commit/02d6f5008ae6a906bc2275a2295323e22b1492ba 中的翻译其实类似

@yin1999 问题是,这个 this 实际上并不指向类本身,而是作用域的 this。相当于,类还不存在,正在借助外部的 this 创建类。 image

BSPR0002 avatar May 07 '24 16:05 BSPR0002

这里应该特指“此 this 并非实例中的 this”,其用于指代当前的类定义本身,而非实例。我觉得这与 02d6f50 中的翻译其实类似

@yin1999 问题是,这个 this 实际上并不指向类本身,而是作用域的 this。相当于,类还不存在,正在借助外部的 this 创建类。 image

是的,我理解错了 :+1:


edit: 已参照 02d6f5008ae6a906bc2275a2295323e22b1492ba 进行修改

yin1999 avatar May 08 '24 02:05 yin1999