aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/statements/var/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/statements/var/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/statements/var/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/reference/statements/var/index.html b/files/zh-cn/web/javascript/reference/statements/var/index.html
index 4f5736c4ee..95c4d22d88 100644
--- a/files/zh-cn/web/javascript/reference/statements/var/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/var/index.html
@@ -29,7 +29,7 @@ translation_of: Web/JavaScript/Reference/Statements/var
<dd>变量的初始化值。该值可以是任何合法的表达式。默认值为 <code>undefined</code>。</dd>
</dl>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>变量声明,无论发生在何处,都在执行任何代码之前进行处理。用 <code>var</code> 声明的变量的作用域是它当前的执行上下文,它可以是嵌套的函数,或者对于声明在任何函数外的变量来说是全局。如果你重新声明一个 JavaScript 变量,它将不会丢失其值。</p>
@@ -105,7 +105,7 @@ function do_something() {
console.log(bar); // 111
}</pre>
-<h2 id="Examples" name="Examples">例子</h2>
+<h2 id="Examples">例子</h2>
<h3 id="声明并初始化两个变量:">声明并初始化两个变量:</h3>