diff options
Diffstat (limited to 'files/zh-cn/web/javascript')
-rw-r--r-- | files/zh-cn/web/javascript/inheritance_and_the_prototype_chain/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 <p>代码来源链接:<a href="https://repl.it/@khaled_hossain_code/prototype">https://repl.it/@khaled_hossain_code/prototype</a></p> -<p>给对象设置属性会创建自有属性。获取和设置属性的唯一限制是内置 <a href="/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objects#Defining_getters_and_setters">getter 或 setter</a> 的属性。</p> +<p>给对象设置属性会创建自有属性。获取和设置行为规则的唯一例外是当继承的属性带有 <a href="/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objects#Defining_getters_and_setters">getter 或 setter</a> 时。</p> <h3 id="继承方法">继承方法</h3> |