diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/functions/set/index.html')
-rw-r--r-- | files/zh-cn/web/javascript/reference/functions/set/index.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/files/zh-cn/web/javascript/reference/functions/set/index.html b/files/zh-cn/web/javascript/reference/functions/set/index.html index ce864843d1..76f67c2779 100644 --- a/files/zh-cn/web/javascript/reference/functions/set/index.html +++ b/files/zh-cn/web/javascript/reference/functions/set/index.html @@ -51,7 +51,7 @@ translation_of: Web/JavaScript/Reference/Functions/set <h2 id="示例">示例</h2> -<h3 id="Example_Defining_a_getter_with_the_get_operator" name="Example:_Defining_a_getter_with_the_get_operator">在对象初始化时定义 setter</h3> +<h3 id="Example_Defining_a_getter_with_the_get_operator">在对象初始化时定义 setter</h3> <p>这将定义一个对象 <code>language</code> 的伪属性<code>current</code>,当<code>current</code>被分配一个值时,将使用该值更新<code>log</code>:</p> @@ -70,7 +70,7 @@ console.log(language.log); // ['EN', 'FA']</pre> <p>请注意,<code>current</code>属性是未定义的,访问它时将会返回 <code>undefined</code>。</p> -<h3 id="Example_Removing_a_setter_with_the_delete_operator" name="Example:_Removing_a_setter_with_the_delete_operator">用 <code>delete</code> 操作符移除一个 setter</h3> +<h3 id="Example_Removing_a_setter_with_the_delete_operator">用 <code>delete</code> 操作符移除一个 setter</h3> <p>我们可以使用<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete">delete</a></code>操作符移除 setter。</p> @@ -121,7 +121,7 @@ console.log(obj.baz); // "baz" <p>{{Compat("javascript.functions.set")}}</p> -<h2 id="See_also" name="See_also">相关链接</h2> +<h2 id="See_also">相关链接</h2> <ul> <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/get">getter</a></li> |