aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/symbol/tostring/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/symbol/tostring/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/symbol/tostring/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/tostring/index.html
index 44be848f73..d59863f878 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/symbol/tostring/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/tostring/index.html
@@ -5,15 +5,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Symbol/toString
---
<div>{{JSRef("Global_Objects", "Symbol")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>toString()</strong></code> 方法返回当前 symbol 对象的字符串表示。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><var>symbol.toString()</var>;</pre>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>{{jsxref("Symbol")}} 对象拥有自己的 <code>toString</code> 方法,因而遮蔽了原型链上的 {{jsxref("Object.prototype.toString()")}}。</p>
@@ -109,7 +109,7 @@ Symbol.for("foo").toString() // "Symbol(foo)"
</table>
</div>
-<h2 id="See_Also" name="See_Also">相关链接</h2>
+<h2 id="See_Also">相关链接</h2>
<ul>
<li>{{jsxref("Object.prototype.toString()")}}</li>