diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:07 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | c40612041809fe289aba58aefa170bbe784aba1f (patch) | |
tree | 8ca89b071d04afcf7abd6d9a04d0765a041d9c8a /files/zh-cn/web/javascript/reference/global_objects/boolean | |
parent | 12a899ab8540bc84f56a0dc6491be80a48499d49 (diff) | |
download | translated-content-c40612041809fe289aba58aefa170bbe784aba1f.tar.gz translated-content-c40612041809fe289aba58aefa170bbe784aba1f.tar.bz2 translated-content-c40612041809fe289aba58aefa170bbe784aba1f.zip |
remove name attribute for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/boolean')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/boolean/tostring/index.html | 6 | ||||
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/boolean/valueof/index.html | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/boolean/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/boolean/tostring/index.html index e18ed5d604..847d1ace1d 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/boolean/tostring/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/boolean/tostring/index.html @@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Boolean/toString -<h2 id="Syntax" name="Syntax">语法</h2> +<h2 id="Syntax">语法</h2> <pre class="syntaxbox"><var>bool</var>.toString()</pre> @@ -24,7 +24,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Boolean/toString <p>表示特定{{jsxref("Boolean")}}对象的字符串。</p> -<h2 id="Description" name="Description">描述</h2> +<h2 id="Description">描述</h2> <p>{{jsxref("Boolean")}} 对象覆盖了 {{jsxref("Object")}} 对象的 <code>toString</code> 方法。并没有继承 {{jsxref("Object.prototype.toString()")}}。对于布尔对象,<code>toString</code> 方法返回该对象的字符串形式。</p> @@ -78,7 +78,7 @@ var myVar = flag.toString() <p>{{Compat("javascript.builtins.Boolean.toString")}}</p> -<h2 id="See_Also" name="See_Also">相关链接</h2> +<h2 id="See_Also">相关链接</h2> <ul> <li>{{jsxref("Object.prototype.toString()")}}</li> diff --git a/files/zh-cn/web/javascript/reference/global_objects/boolean/valueof/index.html b/files/zh-cn/web/javascript/reference/global_objects/boolean/valueof/index.html index 9f2cc2ee8d..62137bbdf6 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/boolean/valueof/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/boolean/valueof/index.html @@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Boolean/valueOf -<h2 id="Syntax" name="Syntax">语法</h2> +<h2 id="Syntax">语法</h2> <pre class="syntaxbox"><code><var>bool</var>.valueOf()</code></pre> @@ -24,15 +24,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Boolean/valueOf <p>给定{{jsxref("Boolean")}}对象的原始值</p> -<h2 id="Description" name="Description">描述</h2> +<h2 id="Description">描述</h2> <p>{{jsxref("Boolean")}}的 <code>valueOf</code> 方法返回一个{{jsxref("Boolean")}}对象或{{jsxref("Boolean")}}字面量的原始值作为布尔数据类型。</p> <p>该方法通常在 JavaScript 内部调用,而不是在代码中显式调用。</p> -<h2 id="Examples" name="Examples">示例</h2> +<h2 id="Examples">示例</h2> -<h3 id="Example:_Using_valueOf" name="Example:_Using_valueOf">使用 <code>valueOf</code></h3> +<h3 id="Example:_Using_valueOf">使用 <code>valueOf</code></h3> <pre class="brush: js">x = new Boolean(); myVar = x.valueOf() // assigns false to myVar @@ -74,7 +74,7 @@ myVar = x.valueOf() // assigns false to myVar <p>{{Compat("javascript.builtins.Boolean.valueOf")}}</p> -<h2 id="See_Also" name="See_Also">相关链接</h2> +<h2 id="See_Also">相关链接</h2> <ul> <li>{{jsxref("Object.prototype.valueOf()")}}</li> |