From c1e3afe1841ba745523c226a2b7153043947642b Mon Sep 17 00:00:00 2001 From: TakeshiZ <380311869@qq.com> Date: Thu, 16 Dec 2021 15:18:30 +0800 Subject: Update index.html The former translation seems to be not correct : ) --- .../zh-cn/web/javascript/inheritance_and_the_prototype_chain/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files') diff --git a/files/zh-cn/web/javascript/inheritance_and_the_prototype_chain/index.html b/files/zh-cn/web/javascript/inheritance_and_the_prototype_chain/index.html index 17d56dd7f6..b83c68af65 100644 --- a/files/zh-cn/web/javascript/inheritance_and_the_prototype_chain/index.html +++ b/files/zh-cn/web/javascript/inheritance_and_the_prototype_chain/index.html @@ -88,7 +88,7 @@ console.log(o.d); // undefined

代码来源链接:https://repl.it/@khaled_hossain_code/prototype

-

给对象设置属性会创建自有属性。获取和设置属性的唯一限制是内置 getter 或 setter 的属性。

+

给对象设置属性会创建自有属性。获取和设置行为规则的唯一例外是当继承的属性带有 getter 或 setter 时。

继承方法

-- cgit v1.2.3-54-g00ecf