diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:06 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | c4576ded828eb9a5ef5f032c8f9409a7116f80a1 (patch) | |
tree | a26eb256f89eb1b8b2a9c65f1e0183509622807e /files/zh-cn | |
parent | f7b137a3dff09fb8f976140d16029ad6ec5cf2b5 (diff) | |
download | translated-content-c4576ded828eb9a5ef5f032c8f9409a7116f80a1.tar.gz translated-content-c4576ded828eb9a5ef5f032c8f9409a7116f80a1.tar.bz2 translated-content-c4576ded828eb9a5ef5f032c8f9409a7116f80a1.zip |
remove id attribute not in heading for zh-CN
Diffstat (limited to 'files/zh-cn')
214 files changed, 396 insertions, 436 deletions
diff --git a/files/zh-cn/web/javascript/guide/details_of_the_object_model/index.html b/files/zh-cn/web/javascript/guide/details_of_the_object_model/index.html index 36f626ed0e..6a8e44753d 100644 --- a/files/zh-cn/web/javascript/guide/details_of_the_object_model/index.html +++ b/files/zh-cn/web/javascript/guide/details_of_the_object_model/index.html @@ -317,7 +317,7 @@ mark.projects = ["navigator"];</pre> <p>到目前为止,本文所展示的构造函数都不能让你在创建新实例时为其制定属性值。其实我们也可以像 Java 一样,为构造器提供参数以初始化实例的属性值。下图展示了一种实现方式。</p> -<p><img alt="" class="internal" id="figure8.5" src="/@api/deki/files/4423/=figure8.5.png" style="height: 481px; width: 1012px;"><br> +<p><img alt="" class="internal" src="/@api/deki/files/4423/=figure8.5.png" style="height: 481px; width: 1012px;"><br> <small><strong>Specifying properties in a constructor, take 1</strong></small></p> <p>下面的表格中罗列了这些对象在 Java 和 JavaScript 中的定义。</p> diff --git a/files/zh-cn/web/javascript/guide/regular_expressions/index.html b/files/zh-cn/web/javascript/guide/regular_expressions/index.html index b38f643ced..d4b03b82de 100644 --- a/files/zh-cn/web/javascript/guide/regular_expressions/index.html +++ b/files/zh-cn/web/javascript/guide/regular_expressions/index.html @@ -245,7 +245,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions /\w\b\w/将不能匹配任何字符串,因为在一个单词中间的字符永远也不可能同时满足没有“字”字符跟随和有“字”字符跟随两种情况。</p> <div class="note"> - <p><strong>注意:</strong> JavaScript的正则表达式引擎将<a href="http://www.ecma-international.org/ecma-262/5.1/#sec-15.10.2.6">特定的字符集</a>定义为“字”字符。不在该集合中的任何字符都被认为是一个断词。这组字符相当有限:它只包括大写和小写的罗马字母,十进制数字和下划线字符。不幸的是,重要的字符,例如“<a id="none" name="none"></a>é”或“ü”,被视为断词。</p> + <p><strong>注意:</strong> JavaScript的正则表达式引擎将<a href="http://www.ecma-international.org/ecma-262/5.1/#sec-15.10.2.6">特定的字符集</a>定义为“字”字符。不在该集合中的任何字符都被认为是一个断词。这组字符相当有限:它只包括大写和小写的罗马字母,十进制数字和下划线字符。不幸的是,重要的字符,例如“<a name="none"></a>é”或“ü”,被视为断词。</p> </div> </td> </tr> @@ -543,7 +543,7 @@ console.log("The value of lastIndex is " + /d(b+)d/g.lastIndex); <p>当发生/d(b+)d/g使用两个不同状态的正则表达式对象,lastIndex属性会得到不同的值。如果你需要访问一个正则表达式的属性,则需要创建一个对象初始化生成器,你应该首先把它赋值给一个变量。</p> -<h3 id="使用括号的子字符串匹配_2"><a id="使用括号的子字符串匹配" name="使用括号的子字符串匹配">使用括号的子字符串匹配</a></h3> +<h3 id="使用括号的子字符串匹配_2"><a name="使用括号的子字符串匹配">使用括号的子字符串匹配</a></h3> <p>一个正则表达式模式使用括号,将导致相应的子匹配被记住。例如,/a(b)c /可以匹配字符串“abc”,并且记得“b”。回调这些括号中匹配的子串,使用数组元素[1],……[n]。</p> diff --git a/files/zh-cn/web/javascript/guide/working_with_objects/index.html b/files/zh-cn/web/javascript/guide/working_with_objects/index.html index eb20cf56b1..1092d05e0a 100644 --- a/files/zh-cn/web/javascript/guide/working_with_objects/index.html +++ b/files/zh-cn/web/javascript/guide/working_with_objects/index.html @@ -10,7 +10,7 @@ tags: - 比较对象 translation_of: Web/JavaScript/Guide/Working_with_Objects --- -<div><a id="#%E5%AF%B9%E8%B1%A1%E5%92%8C%E5%B1%9E%E6%80%A7" name="#%E5%AF%B9%E8%B1%A1%E5%92%8C%E5%B1%9E%E6%80%A7"></a>{{jsSidebar("JavaScript Guide")}} {{PreviousNext("Web/JavaScript/Guide/Text_formatting", "Web/JavaScript/Guide/Details_of_the_Object_Model")}}</div> +<div>{{jsSidebar("JavaScript Guide")}} {{PreviousNext("Web/JavaScript/Guide/Text_formatting", "Web/JavaScript/Guide/Details_of_the_Object_Model")}}</div> <p class="summary">JavaScript 的设计是一个简单的基于对象的范式。一个对象就是一系列属性的集合,一个属性包含一个名和一个值。一个属性的值可以是函数,这种情况下属性也被称为<em>方法</em>。除了浏览器里面预定义的那些对象之外,你也可以定义你自己的对象。本章节讲述了怎么使用对象、属性、函数和方法,怎样实现自定义对象。</p> diff --git a/files/zh-cn/web/javascript/reference/classes/index.html b/files/zh-cn/web/javascript/reference/classes/index.html index 55bc4d0937..643b672fe7 100644 --- a/files/zh-cn/web/javascript/reference/classes/index.html +++ b/files/zh-cn/web/javascript/reference/classes/index.html @@ -446,7 +446,3 @@ class Bar extends calculatorMixin(randomizerMixin(Foo)) { }</pre> <li><a href="https://hacks.mozilla.org/2015/07/es6-in-depth-classes/">Blog post: "ES6 In Depth: Classes"</a></li> <li><a href="https://github.com/tc39/proposal-class-fields">Fields and public/private class properties proposal (stage 3)</a></li> </ul> - -<div id="gtx-trans" style="position: absolute; left: 160px; top: 11337px;"> -<div class="gtx-trans-icon"></div> -</div> diff --git a/files/zh-cn/web/javascript/reference/errors/deprecated_source_map_pragma/index.html b/files/zh-cn/web/javascript/reference/errors/deprecated_source_map_pragma/index.html index e37aec2fa3..42339a4e85 100644 --- a/files/zh-cn/web/javascript/reference/errors/deprecated_source_map_pragma/index.html +++ b/files/zh-cn/web/javascript/reference/errors/deprecated_source_map_pragma/index.html @@ -53,7 +53,7 @@ Warning: SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecat <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -76,7 +76,7 @@ Warning: SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecat </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html index 6879a6b985..05f19bfcb5 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html @@ -141,7 +141,7 @@ arr[0].hi = "hi"; // [{ hi: "hi" }, { hi: "hi" }, { hi: "hi" }]</pre> <div>{{Compat("javascript.builtins.Array.fill")}}</div> -<div id="compat-mobile"> +<div> </div> diff --git a/files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html b/files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html index 23361908f2..7b92b97033 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html @@ -4,9 +4,9 @@ slug: Web/JavaScript/Reference/Global_Objects/BigInt64Array translation_of: Web/JavaScript/Reference/Global_Objects/BigInt64Array --- <div> -<p id="JSRef">{{JSRef}}</p> +<p>{{JSRef}}</p> -<p id="BigInt64Array类型的数组代表由64位有符号整数组成的数组。如果需要控制字节顺序的话,请使用_jsxrefDataView_代替。内容初始化为0n。一旦建立,就可以使用对象的方法或使用标准数组索引语法(即使用中括号表示法)引用数组中的元素。"><strong><code>BigInt64Array</code></strong> 类型的数组代表由64位有符号整数组成的数组。如果需要控制字节顺序的话,请使用 {{jsxref("DataView")}} 代替。内容初始化为 <code>0n</code> 。一旦建立,就可以使用对象的方法或使用标准数组索引语法(即使用中括号表示法)引用数组中的元素。</p> +<p><strong><code>BigInt64Array</code></strong> 类型的数组代表由64位有符号整数组成的数组。如果需要控制字节顺序的话,请使用 {{jsxref("DataView")}} 代替。内容初始化为 <code>0n</code> 。一旦建立,就可以使用对象的方法或使用标准数组索引语法(即使用中括号表示法)引用数组中的元素。</p> </div> <h2 id="构造函数">构造函数</h2> diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getmilliseconds/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getmilliseconds/index.html index 15d556779d..be3ebe8f9b 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/getmilliseconds/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/getmilliseconds/index.html @@ -66,8 +66,6 @@ ms = Today.getMilliseconds();</code></pre> <h2 id="See_Also" name="See_Also" style="margin-bottom: 20px; line-height: 30px;">相关链接</h2> -<p id=".E7.9B.B8.E5.85.B3.E9.93.BE.E6.8E.A5"> </p> - <ul> <li>{{jsxref("Date.prototype.getUTCMilliseconds()")}}</li> <li>{{jsxref("Date.prototype.setMilliseconds()")}}</li> diff --git a/files/zh-cn/web/javascript/reference/global_objects/decodeuri/index.html b/files/zh-cn/web/javascript/reference/global_objects/decodeuri/index.html index d988fc7557..f629d4ec9b 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/decodeuri/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/decodeuri/index.html @@ -99,7 +99,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/decodeURI <h2 id="相关链接">相关链接</h2> -<div id="compat-mobile"></div> +<div></div> <ul> <li>{{jsxref("decodeURIComponent")}}</li> diff --git a/files/zh-cn/web/javascript/reference/global_objects/decodeuricomponent/index.html b/files/zh-cn/web/javascript/reference/global_objects/decodeuricomponent/index.html index 8593a8a074..ebe7d639ed 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/decodeuricomponent/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/decodeuricomponent/index.html @@ -89,7 +89,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/decodeURIComponent <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -112,7 +112,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/decodeURIComponent </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/encodeuri/index.html b/files/zh-cn/web/javascript/reference/global_objects/encodeuri/index.html index 8f3db7a445..1bb8380c20 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/encodeuri/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/encodeuri/index.html @@ -113,7 +113,7 @@ console.log(encodeURI('\uDFFF'));</pre> <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -136,7 +136,7 @@ console.log(encodeURI('\uDFFF'));</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/error/columnnumber/index.html b/files/zh-cn/web/javascript/reference/global_objects/error/columnnumber/index.html index cff8e92402..e1e1161fbd 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/error/columnnumber/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/error/columnnumber/index.html @@ -24,7 +24,7 @@ console.log(e.columnNumber) // 0 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -47,7 +47,7 @@ console.log(e.columnNumber) // 0 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/error/filename/index.html b/files/zh-cn/web/javascript/reference/global_objects/error/filename/index.html index 430cb738c2..2ef563d050 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/error/filename/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/error/filename/index.html @@ -28,7 +28,7 @@ throw e; <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -51,7 +51,7 @@ throw e; </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/error/message/index.html b/files/zh-cn/web/javascript/reference/global_objects/error/message/index.html index 92ba4e16c1..e846ff838c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/error/message/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/error/message/index.html @@ -54,7 +54,7 @@ throw e; <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -77,7 +77,7 @@ throw e; </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/error/name/index.html b/files/zh-cn/web/javascript/reference/global_objects/error/name/index.html index 13232d69d9..4d24a6f972 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/error/name/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/error/name/index.html @@ -54,7 +54,7 @@ throw e; // "ParseError: Malformed input" <div style="line-height: 19.0909080505371px;">{{CompatibilityTable}}</div> -<div id="compat-desktop" style="line-height: 19.0909080505371px;"> +<div style="line-height: 19.0909080505371px;"> <table class="compat-table" style="border-color: transparent;"> <tbody> <tr> @@ -77,7 +77,7 @@ throw e; // "ParseError: Malformed input" </table> </div> -<div id="compat-mobile" style="line-height: 19.0909080505371px;"> +<div style="line-height: 19.0909080505371px;"> <table class="compat-table" style="border-color: transparent;"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/error/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/error/tostring/index.html index a32f0919d3..a7e6a10ace 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/error/tostring/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/error/tostring/index.html @@ -77,7 +77,7 @@ print(e.toString()); // "hello" </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -99,7 +99,7 @@ print(e.toString()); // "hello" </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/escape/index.html b/files/zh-cn/web/javascript/reference/global_objects/escape/index.html index 02c6848668..72fd5e66e2 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/escape/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/escape/index.html @@ -70,7 +70,7 @@ escape("@*_+-./"); // "@*_+-./"</pre> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -93,7 +93,7 @@ escape("@*_+-./"); // "@*_+-./"</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/finalizationregistry/index.html b/files/zh-cn/web/javascript/reference/global_objects/finalizationregistry/index.html index 5dbd569caf..c1823859ad 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/finalizationregistry/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/finalizationregistry/index.html @@ -147,7 +147,3 @@ registry.unregister(tokenObject); <li>{{jsxref("WeakSet")}}</li> <li>{{jsxref("WeakMap")}}</li> </ul> - -<div id="gtx-trans" style="position: absolute; left: 224px; top: 147px;"> -<div class="gtx-trans-icon"></div> -</div> diff --git a/files/zh-cn/web/javascript/reference/global_objects/float32array/index.html b/files/zh-cn/web/javascript/reference/global_objects/float32array/index.html index 393c5e4c2d..016faed724 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/float32array/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/float32array/index.html @@ -177,7 +177,7 @@ var z = new Float32Array(buffer, 0, 4); <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -208,7 +208,7 @@ var z = new Float32Array(buffer, 0, 4); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/float64array/index.html b/files/zh-cn/web/javascript/reference/global_objects/float64array/index.html index 8c08d222d8..7cc7d30a39 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/float64array/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/float64array/index.html @@ -175,7 +175,7 @@ var z = new Float64Array(buffer, 0, 4); <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -206,7 +206,7 @@ var z = new Float64Array(buffer, 0, 4); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/arguments/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/arguments/index.html index a0c93f29f3..ef832c70db 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/function/arguments/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/function/arguments/index.html @@ -69,7 +69,7 @@ console.log('函数退出后的 arguments 属性值:' + g.arguments); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -92,7 +92,7 @@ console.log('函数退出后的 arguments 属性值:' + g.arguments); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/displayname/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/displayname/index.html index abf8452f93..c07f677636 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/function/displayname/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/function/displayname/index.html @@ -72,7 +72,7 @@ a; // "function My Function()"</pre> <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -95,7 +95,7 @@ a; // "function My Function()"</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html b/files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html index 96ad60c35c..e135b75afc 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html @@ -106,7 +106,7 @@ g.next(2); <div>{{CompatibilityTable}}</div> <div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -131,7 +131,7 @@ g.next(2); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/generator/throw/index.html b/files/zh-cn/web/javascript/reference/global_objects/generator/throw/index.html index fec5b2f93c..19b2623a88 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/generator/throw/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/generator/throw/index.html @@ -87,7 +87,7 @@ g.throw(new Error("Something went wrong")); // "Error caught!" <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -110,7 +110,7 @@ g.throw(new Error("Something went wrong")); // "Error caught!" </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/int16array/index.html b/files/zh-cn/web/javascript/reference/global_objects/int16array/index.html index 0626eed988..6cb8a365b6 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/int16array/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/int16array/index.html @@ -170,7 +170,7 @@ var z = new Int16Array(buffer, 0, 4); <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -201,7 +201,7 @@ var z = new Int16Array(buffer, 0, 4); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/int32array/index.html b/files/zh-cn/web/javascript/reference/global_objects/int32array/index.html index 74c3bdb650..9c7e556a51 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/int32array/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/int32array/index.html @@ -175,7 +175,7 @@ var z = new Int32Array(buffer, 0, 4); <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -206,7 +206,7 @@ var z = new Int32Array(buffer, 0, 4); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/int8array/index.html b/files/zh-cn/web/javascript/reference/global_objects/int8array/index.html index a2916916a9..e437d73a73 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/int8array/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/int8array/index.html @@ -174,7 +174,7 @@ var z = new Int8Array(buffer, 1, 4); <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -205,7 +205,7 @@ var z = new Int8Array(buffer, 1, 4); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/internalerror/index.html b/files/zh-cn/web/javascript/reference/global_objects/internalerror/index.html index 57f84f7db4..fc9c4a389f 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/internalerror/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/internalerror/index.html @@ -67,7 +67,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/InternalError <h2 id="CompatibilityTable">{{CompatibilityTable}}</h2> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -90,7 +90,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/InternalError </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html index a6c1e7c5dc..1f446b3247 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html @@ -233,7 +233,7 @@ console.log(date.toLocaleString('en-US', options)); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -256,7 +256,7 @@ console.log(date.toLocaleString('en-US', options)); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html index 5e49aa512d..0ab3691377 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html @@ -240,7 +240,7 @@ console.log(new Intl.NumberFormat('en-GB', { notation: "compact" , compactDispla <div></div> -<div id="compat-mobile">{{Compat("javascript.builtins.Intl.NumberFormat")}}</div> +<div>{{Compat("javascript.builtins.Intl.NumberFormat")}}</div> <h2 id="参见">参见</h2> diff --git a/files/zh-cn/web/javascript/reference/global_objects/map/@@tostringtag/index.html b/files/zh-cn/web/javascript/reference/global_objects/map/@@tostringtag/index.html index 46132abe7f..186603b1a3 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/map/@@tostringtag/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/map/@@tostringtag/index.html @@ -53,7 +53,7 @@ browser-compat: javascript.builtins.Map.@@toStringTag <p>{{CompatibilityTable}} </p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -76,7 +76,7 @@ browser-compat: javascript.builtins.Map.@@toStringTag </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/map/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/map/has/index.html index db61579557..461f2e5e07 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/map/has/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/map/has/index.html @@ -66,7 +66,7 @@ myMap.has("baz"); // returns false <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -89,7 +89,7 @@ myMap.has("baz"); // returns false </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/map/set/index.html b/files/zh-cn/web/javascript/reference/global_objects/map/set/index.html index d4fd287926..701fd336f0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/map/set/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/map/set/index.html @@ -12,7 +12,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Map/set original_slug: Web/JavaScript/Reference/Global_Objects/Map/set browser-compat: javascript.builtins.Map.set --- -<p id="sect1">{{JSRef}}</p> +<p>{{JSRef}}</p> <p><code><strong>set()</strong></code> 方法为 <code>Map</code> 对象添加或更新一个指定了键(<code>key</code>)和值(<code>value</code>)的(新)键值对。</p> diff --git a/files/zh-cn/web/javascript/reference/global_objects/map/values/index.html b/files/zh-cn/web/javascript/reference/global_objects/map/values/index.html index 5c4aad2316..46e4de8672 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/map/values/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/map/values/index.html @@ -65,7 +65,7 @@ console.log(mapIter.next().value); // "baz"</pre> <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -88,7 +88,7 @@ console.log(mapIter.next().value); // "baz"</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html index c1f41d7202..397ad9724b 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html @@ -67,7 +67,7 @@ Math.abs(); // NaN</pre> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -90,7 +90,7 @@ Math.abs(); // NaN</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html index 7ff574d177..032174b53e 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html @@ -57,7 +57,7 @@ Math.acos(2); // NaN </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -79,7 +79,7 @@ Math.acos(2); // NaN </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html index de7ebe61b3..7e6017abbd 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html @@ -56,7 +56,7 @@ Math.asin(2); // NaN</pre> </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -78,7 +78,7 @@ Math.asin(2); // NaN</pre> </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html index cd10d30644..460bd0de51 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html @@ -52,7 +52,7 @@ Math.atan(0); // 0 </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -74,7 +74,7 @@ Math.atan(0); // 0 </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html index 7bf921655d..64064017c7 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html @@ -79,7 +79,7 @@ Math.atan2(15, 90) // 0.16514867741462683 <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -102,7 +102,7 @@ Math.atan2(15, 90) // 0.16514867741462683 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/atanh/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/atanh/index.html index 08af33d242..6a0b373ddf 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/atanh/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/atanh/index.html @@ -73,7 +73,7 @@ Math.atanh(2); // NaN <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -96,7 +96,7 @@ Math.atanh(2); // NaN </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html index 402ebeb052..22f37c402a 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html @@ -82,7 +82,7 @@ Math.cbrt(2); // 1.2599210498948734</pre> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -105,7 +105,7 @@ Math.cbrt(2); // 1.2599210498948734</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html index 55b273cad1..482f2fa09a 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html @@ -54,7 +54,7 @@ Math.cos(2 * Math.PI); // 1 </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -76,7 +76,7 @@ Math.cos(2 * Math.PI); // 1 </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/cosh/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/cosh/index.html index cd5e578571..f046070715 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/cosh/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/cosh/index.html @@ -71,7 +71,7 @@ Math.cosh(-1); // 1.5430806348152437 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -94,7 +94,7 @@ Math.cosh(-1); // 1.5430806348152437 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/e/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/e/index.html index ffa4251bac..2a0afca6ab 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/e/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/e/index.html @@ -47,7 +47,7 @@ getNapier() // 2.718281828459045</pre> </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -69,7 +69,7 @@ getNapier() // 2.718281828459045</pre> </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html index 6295073e83..0da94f62c2 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html @@ -50,7 +50,7 @@ Math.exp(1); // 2.718281828459045</pre> </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -72,7 +72,7 @@ Math.exp(1); // 2.718281828459045</pre> </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html index f7baeb0486..3098a43b63 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html @@ -64,7 +64,7 @@ Math.expm1("foo") // NaN <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -87,7 +87,7 @@ Math.expm1("foo") // NaN </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html index 6a8bb13fc2..84f4f3b8b6 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html @@ -162,7 +162,7 @@ Math.ceil10(-59, 1); // -50 <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -185,7 +185,7 @@ Math.ceil10(-59, 1); // -50 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html index 022e84dbb6..f5118b4a22 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html @@ -99,7 +99,7 @@ equal(0.1 + 0.2, 0.3); //true <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -122,7 +122,7 @@ equal(0.1 + 0.2, 0.3); //true </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html index 9d0e9f1c29..a3daf8f633 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html @@ -94,7 +94,7 @@ Math.imul(0xfffffffe, 5) //-10 <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -117,7 +117,7 @@ Math.imul(0xfffffffe, 5) //-10 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html index dac9f67466..a4eba0051e 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html @@ -47,7 +47,7 @@ getNatLog10() // 2.302585092994046</pre> </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -69,7 +69,7 @@ getNatLog10() // 2.302585092994046</pre> </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html index ab79666f23..b8d7dd049e 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html @@ -47,7 +47,7 @@ getNatLog2() // 0.6931471805599453</pre> </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -69,7 +69,7 @@ getNatLog2() // 0.6931471805599453</pre> </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html index d91a937ec1..827dea60af 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html @@ -3,9 +3,9 @@ title: Math.log() slug: Web/JavaScript/Reference/Global_Objects/Math/log translation_of: Web/JavaScript/Reference/Global_Objects/Math/log --- -<p id="Summary">{{JSRef("Global_Objects", "Math")}}</p> +<p>{{JSRef("Global_Objects", "Math")}}</p> -<h2 id="Summary" name="Summary">概述</h2> +<h2 name="Summary">概述</h2> <p><code><strong>Math.log()</strong></code> 函数返回一个数的自然对数,即:</p> @@ -80,7 +80,7 @@ Math.log(10); // 2.302585092994046</pre> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -103,7 +103,7 @@ Math.log(10); // 2.302585092994046</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html index 3b8aefc6ed..80dc91b6ca 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html @@ -58,7 +58,7 @@ Math.log10("foo")// NaN <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -81,7 +81,7 @@ Math.log10("foo")// NaN </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html index 3a929935f1..1e5f1ae035 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html @@ -47,7 +47,7 @@ getLog10e() // 0.4342944819032518</pre> </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -69,7 +69,7 @@ getLog10e() // 0.4342944819032518</pre> </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html index 2f9b0c64a5..403d4039a2 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html @@ -61,7 +61,7 @@ Math.log1p("foo") // NaN <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -84,7 +84,7 @@ Math.log1p("foo") // NaN </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html index bb048cd49a..78f1c43b93 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html @@ -58,7 +58,7 @@ Math.log2("foo") // NaN <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -81,7 +81,7 @@ Math.log2("foo") // NaN </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html index 9c68f4cc57..9ede75f09c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html @@ -47,7 +47,7 @@ getLog2e() // 1.4426950408889634</pre> </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -69,7 +69,7 @@ getLog2e() // 1.4426950408889634</pre> </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/min/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/min/index.html index 2cc029c6c3..a5a5a6defc 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/min/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/min/index.html @@ -100,7 +100,7 @@ if (x > boundary) { <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -123,7 +123,7 @@ if (x > boundary) { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html index 69b5ab79d1..9c844c1447 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html @@ -60,7 +60,7 @@ calculateCircumference(1); // 6.283185307179586</code></pre> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -83,7 +83,7 @@ calculateCircumference(1); // 6.283185307179586</code></pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html index 477faee220..6b9b7956ba 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html @@ -157,7 +157,7 @@ round(1.005, 2); //1.01 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -180,7 +180,7 @@ round(1.005, 2); //1.01 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html index 9c41082511..60808dde44 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html @@ -97,7 +97,7 @@ Math.sign(); // NaN <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -120,7 +120,7 @@ Math.sign(); // NaN </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sin/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sin/index.html index a08cda8912..fffb0dc1a1 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/sin/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/sin/index.html @@ -66,7 +66,7 @@ Math.sin(Math.PI / 2); // 1</pre> <p>{{ Compat("javascript.builtins.Math.sin") }}</p> -<div id="compat-desktop"></div> +<div></div> <h2 id="See_also" name="See_also">相关链接</h2> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html index 1682a0ba73..7ba28b5f3d 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html @@ -63,7 +63,7 @@ Math.sinh("foo") // NaN <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -86,7 +86,7 @@ Math.sinh("foo") // NaN </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html index 47e0557901..2c3c139abe 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html @@ -48,7 +48,7 @@ getRoot1_2() // 0.7071067811865476</pre> </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -70,7 +70,7 @@ getRoot1_2() // 0.7071067811865476</pre> </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html index a9eb2ddcd4..5171a2f9df 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html @@ -43,7 +43,7 @@ getRoot2(); // 1.4142135623730951</pre> </table> <h2 id="浏览器兼容性" style="margin-bottom: 20px; line-height: 30px;">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -65,7 +65,7 @@ getRoot2(); // 1.4142135623730951</pre> </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html index 9e2464d76e..49e0f3c7c2 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html @@ -58,7 +58,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/tan </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -80,7 +80,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/tan </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/epsilon/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/epsilon/index.html index fea6ee1bb8..1557f531e3 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/epsilon/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/epsilon/index.html @@ -59,7 +59,7 @@ equal = (Math.abs(x - y + z) < Number.EPSILON); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -82,7 +82,7 @@ equal = (Math.abs(x - y + z) < Number.EPSILON); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/index.html index 7e89881960..7400ad4ee2 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/index.html @@ -177,7 +177,7 @@ Number('-Infinity') //-Infinity</pre> <h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2> -<div id="compat-mobile"> +<div> <div class="hidden"> <p>The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a>and send us a pull request.</p> </div> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/max_safe_integer/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/max_safe_integer/index.html index 2222e5a5ff..0721e49377 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/max_safe_integer/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/max_safe_integer/index.html @@ -49,7 +49,7 @@ Math.pow(2, 53) - 1 // 9007199254740991 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -72,7 +72,7 @@ Math.pow(2, 53) - 1 // 9007199254740991 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/max_value/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/max_value/index.html index 974f0a46e0..30e25ab13c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/max_value/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/max_value/index.html @@ -60,7 +60,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/MAX_VALUE <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -83,7 +83,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/MAX_VALUE </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html index 0b90f3eb28..b61649b58b 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html @@ -47,7 +47,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/MIN_VALUE </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -69,7 +69,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/MIN_VALUE </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/nan/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/nan/index.html index 9921175594..e75b557e76 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/nan/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/nan/index.html @@ -49,7 +49,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/NaN <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -72,7 +72,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/NaN </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html index 6649246cf5..1078f84668 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html @@ -58,7 +58,7 @@ if (smallNumber == Number.NEGATIVE_INFINITY) { </table> <h2 id="浏览器规范">浏览器规范</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -80,7 +80,7 @@ if (smallNumber == Number.NEGATIVE_INFINITY) { </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/parsefloat/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/parsefloat/index.html index f55a3ceba8..85926e5d09 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/parsefloat/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/parsefloat/index.html @@ -53,7 +53,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/parseFloat <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -76,7 +76,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/parseFloat </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/positive_infinity/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/positive_infinity/index.html index 4207e72e5a..e9020ba078 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/positive_infinity/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/positive_infinity/index.html @@ -73,7 +73,7 @@ if (bigNumber == Number.POSITIVE_INFINITY) { <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -96,7 +96,7 @@ if (bigNumber == Number.POSITIVE_INFINITY) { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/toexponential/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/toexponential/index.html index a19013e4c4..97ed9f8a6d 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/toexponential/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/toexponential/index.html @@ -85,7 +85,7 @@ alert("77 .toExponential() is " + 77 .toExponential()); //输出 7.7e+1</pre> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -108,7 +108,7 @@ alert("77 .toExponential() is " + 77 .toExponential()); //输出 7.7e+1</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html index 00c5e18508..fcf55b0517 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html @@ -109,7 +109,3 @@ numObj.toFixed(6); // 返回 "12345.678900":用0填充 <li>{{jsxref("Number.prototype.toPrecision()")}}</li> <li>{{jsxref("Number.prototype.toString()")}}</li> </ul> - -<div id="gtx-trans" style="position: absolute; left: 561px; top: 1828px;"> -<div class="gtx-trans-icon"></div> -</div> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/tolocalestring/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/tolocalestring/index.html index e907f810c9..193bdf15ea 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/tolocalestring/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/tolocalestring/index.html @@ -156,7 +156,7 @@ console.log(number.toLocaleString('en-IN', { maximumSignificantDigits: 3 })); <p>{{Compat("javascript.builtins.Number.toLocaleString")}}</p> -<div id="compat-mobile"> </div> +<div> </div> <h2 id="相关链接">相关链接</h2> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/toprecision/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/toprecision/index.html index daa0fa0bc8..ec964370f1 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/toprecision/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/toprecision/index.html @@ -76,7 +76,7 @@ console.log((1234.5).toPrecision(2)); // "1.2e+3" <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -99,7 +99,7 @@ console.log((1234.5).toPrecision(2)); // "1.2e+3" </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/tosource/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/tosource/index.html index 3ed14e1397..9355dbb11d 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/tosource/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/tosource/index.html @@ -28,7 +28,7 @@ Number.toSource(); <p>不是任何标准的一部分。在 JavaScript 1.3 被实现。</p> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -50,7 +50,7 @@ Number.toSource(); </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/tostring/index.html index 30fdc17406..2a7407aa25 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/tostring/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/tostring/index.html @@ -92,7 +92,7 @@ console.log((-0xff).toString(2)); // 输出 '-11111111'</code> <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -115,7 +115,7 @@ console.log((-0xff).toString(2)); // 输出 '-11111111'</code> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/valueof/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/valueof/index.html index 81168e6ea0..1b56f29115 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/valueof/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/valueof/index.html @@ -67,7 +67,7 @@ console.log(typeof num); // number <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -90,7 +90,7 @@ console.log(typeof num); // number </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/__definegetter__/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/__definegetter__/index.html index a9c388d009..209a7897e3 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/__definegetter__/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/__definegetter__/index.html @@ -50,7 +50,7 @@ console.log(o.gimmeFive); // 5 <h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2> <div> {{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -72,7 +72,7 @@ console.log(o.gimmeFive); // 5 </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/__definesetter__/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/__definesetter__/index.html index 4c9dce1dd4..2aaac6314d 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/__definesetter__/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/__definesetter__/index.html @@ -35,7 +35,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__ <h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2> <div> {{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -57,7 +57,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__ </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/__lookupgetter__/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/__lookupgetter__/index.html index a94f293880..c9200b5194 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/__lookupgetter__/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/__lookupgetter__/index.html @@ -61,7 +61,7 @@ Object.getOwnPropertyDescriptor(prototype, "foo").get <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -84,7 +84,7 @@ Object.getOwnPropertyDescriptor(prototype, "foo").get </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/__lookupsetter__/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/__lookupsetter__/index.html index 6481c7f16b..859318a8bc 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/__lookupsetter__/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/__lookupsetter__/index.html @@ -79,7 +79,7 @@ Object.getOwnPropertyDescriptor(obj, 'foo').set; <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -102,7 +102,7 @@ Object.getOwnPropertyDescriptor(obj, 'foo').set; </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptor/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptor/index.html index 08874a06e8..7738e33117 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptor/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptor/index.html @@ -137,9 +137,9 @@ Object.getOwnPropertyDescriptor('foo', 0); <div></div> -<div id="compat-mobile"></div> +<div></div> -<div id="compat-desktop"><strong style="">相关链接</strong> </div> +<div><strong style="">相关链接</strong> </div> <ul> <li>{{jsxref("Object.defineProperty()")}}</li> diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptors/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptors/index.html index ebce4498fa..cc321fa788 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptors/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptors/index.html @@ -76,7 +76,7 @@ subclass.prototype = Object.create(superclass.prototype, Object.getOwnPropertyDe <div>{{Compat("javascript.builtins.Object.getOwnPropertyDescriptors")}}</div> -<div id="compat-desktop"> </div> +<div> </div> <h2 id="相关链接">相关链接</h2> diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/isextensible/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/isextensible/index.html index c168d98bfd..249ce52673 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/isextensible/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/isextensible/index.html @@ -87,7 +87,7 @@ Object.isExtensible(1); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -110,7 +110,7 @@ Object.isExtensible(1); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/isprototypeof/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/isprototypeof/index.html index 84ce38e934..fb360e1ec1 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/isprototypeof/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/isprototypeof/index.html @@ -109,7 +109,7 @@ console.log(Object.prototype.isPrototypeOf(baz)); // true <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -133,7 +133,7 @@ console.log(Object.prototype.isPrototypeOf(baz)); // true </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html index 0bc82c3e09..cf2df7e50d 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html @@ -217,7 +217,7 @@ george(); // 'Hello guys!!'</pre> <p>{{Compat("javascript.builtins.Object.setPrototypeOf")}}</p> -<div id="compat-desktop"></div> +<div></div> <h2 id="See_also" name="See_also">相关链接</h2> diff --git a/files/zh-cn/web/javascript/reference/global_objects/parseint/index.html b/files/zh-cn/web/javascript/reference/global_objects/parseint/index.html index cf2555558b..729aee8834 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/parseint/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/parseint/index.html @@ -50,7 +50,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/parseInt <pre>parseInt('123', 5) // 将'123'看作5进制数,返回十进制数38 => 1*5^2 + 2*5^1 + 3*5^0 = 38</pre> -<h2 id="描述_2"><a id="描述" name="描述">描述</a></h2> +<h2 id="描述_2"><a name="描述">描述</a></h2> <p><code>parseInt</code>函数将其第一个参数转换为一个字符串,对该字符串进行解析,然后返回一个整数或 <code>NaN</code>。</p> @@ -209,7 +209,7 @@ console.log(filterInt('1.61803398875')); // NaN <p>{{Compat("javascript.builtins.parseInt")}}</p> -<div id="compat-mobile"></div> +<div></div> <h2 id="相关链接">相关链接</h2> diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/index.html index 31420f60c5..418851f99a 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/promise/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/promise/index.html @@ -12,7 +12,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise --- <p>{{JSRef}}</p> -<p id="概述"><strong>Promise </strong>对象用于表示一个异步操作的最终完成 (或失败)及其结果值。</p> +<p><strong>Promise </strong>对象用于表示一个异步操作的最终完成 (或失败)及其结果值。</p> <p>若想了解 promises 的工作方式以及如何使用它们,我们建议您先阅读<a href="/zh-CN/docs/Web/JavaScript/Guide/Using_promises">使用 promises</a></p> diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/construct/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/construct/index.html index 926148c90d..ac03287c5b 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/construct/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/construct/index.html @@ -119,7 +119,7 @@ new p(); // TypeError is thrown, "p" is not a constructor <div>{{Compat("javascript.builtins.Proxy.handler.construct")}}</div> -<div id="compat-mobile"> </div> +<div> </div> <h2 id="相关主题">相关主题</h2> diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/defineproperty/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/defineproperty/index.html index d3a25bbd1e..661a9a7681 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/defineproperty/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/defineproperty/index.html @@ -124,7 +124,7 @@ Object.defineProperty(p, 'name', { <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -147,7 +147,7 @@ Object.defineProperty(p, 'name', { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/deleteproperty/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/deleteproperty/index.html index 22e48aee67..5d3f631758 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/deleteproperty/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/deleteproperty/index.html @@ -92,7 +92,7 @@ delete p.a; // "called: a" <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -115,7 +115,7 @@ delete p.a; // "called: a" </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/get/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/get/index.html index d84accfa4d..36d60fab7e 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/get/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/get/index.html @@ -121,7 +121,7 @@ p.a; //会抛出TypeError <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -144,7 +144,7 @@ p.a; //会抛出TypeError </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/getownpropertydescriptor/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/getownpropertydescriptor/index.html index 7632c26976..7640828b95 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/getownpropertydescriptor/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/getownpropertydescriptor/index.html @@ -111,7 +111,7 @@ Object.getOwnPropertyDescriptor(p, 'a'); // TypeError is thrown <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -134,7 +134,7 @@ Object.getOwnPropertyDescriptor(p, 'a'); // TypeError is thrown </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/has/index.html index 286d1e9d77..64545b27d2 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/has/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/has/index.html @@ -119,7 +119,7 @@ var p = new Proxy(obj, { <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -142,7 +142,7 @@ var p = new Proxy(obj, { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/ownkeys/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/ownkeys/index.html index 921c8d9b36..d050bb0b71 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/ownkeys/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/ownkeys/index.html @@ -122,7 +122,7 @@ console.log(Object.getOwnPropertyNames(p)); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -145,7 +145,7 @@ console.log(Object.getOwnPropertyNames(p)); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/rangeerror/index.html b/files/zh-cn/web/javascript/reference/global_objects/rangeerror/index.html index c46f557e24..72ca35e7ce 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/rangeerror/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/rangeerror/index.html @@ -103,7 +103,7 @@ catch (e) { <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -126,7 +126,7 @@ catch (e) { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/referenceerror/index.html b/files/zh-cn/web/javascript/reference/global_objects/referenceerror/index.html index 1d42786c00..bcc37e33e3 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/referenceerror/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/referenceerror/index.html @@ -112,7 +112,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/ReferenceError <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -135,7 +135,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/ReferenceError </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/construct/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/construct/index.html index 311c16ca50..c122d6fe14 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/reflect/construct/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/construct/index.html @@ -132,7 +132,7 @@ d.getFullYear(); // 1776 <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -155,7 +155,7 @@ d.getFullYear(); // 1776 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/deleteproperty/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/deleteproperty/index.html index 3be36d7965..1a8b8da0ec 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/reflect/deleteproperty/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/deleteproperty/index.html @@ -78,7 +78,7 @@ Reflect.deleteProperty(Object.freeze({foo: 1}), "foo"); // false <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -101,7 +101,7 @@ Reflect.deleteProperty(Object.freeze({foo: 1}), "foo"); // false </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/get/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/get/index.html index b41fb920c4..39725ba408 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/reflect/get/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/get/index.html @@ -80,7 +80,7 @@ Reflect.get(obj, "foo"); // "foobar" <p>{{Compat("javascript.builtins.Reflect.get")}}</p> -<div id="compat-desktop"></div> +<div></div> <h2 id="相关链接">相关链接</h2> diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/getownpropertydescriptor/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/getownpropertydescriptor/index.html index e999254e32..e4fdfe36a0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/reflect/getownpropertydescriptor/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/getownpropertydescriptor/index.html @@ -83,7 +83,7 @@ Object.getOwnPropertyDescriptor("foo", 0); <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -106,7 +106,7 @@ Object.getOwnPropertyDescriptor("foo", 0); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/has/index.html index aaf55532e3..3b44079e0d 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/reflect/has/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/has/index.html @@ -77,7 +77,7 @@ Reflect.has(obj, "dormitory"); // false <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -100,7 +100,7 @@ Reflect.has(obj, "dormitory"); // false </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/isextensible/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/isextensible/index.html index 2e7e33a136..a10658ab18 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/reflect/isextensible/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/isextensible/index.html @@ -91,7 +91,7 @@ Object.isExtensible(1); <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -114,7 +114,7 @@ Object.isExtensible(1); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/@@search/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/@@search/index.html index c88398e1a2..19a14cdf19 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/@@search/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/@@search/index.html @@ -93,7 +93,7 @@ console.log(result); // 3 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -116,7 +116,7 @@ console.log(result); // 3 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/@@species/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/@@species/index.html index 49f72f06f7..a667841afb 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/@@species/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/@@species/index.html @@ -55,7 +55,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/@@species <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -78,7 +78,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/@@species </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/@@split/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/@@split/index.html index b3bfa32317..213f37b1e7 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/@@split/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/@@split/index.html @@ -91,7 +91,7 @@ console.log(result); // ["(2016)", "(01)", "(02)"] <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -114,7 +114,7 @@ console.log(result); // ["(2016)", "(01)", "(02)"] </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/compile/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/compile/index.html index e5b080a839..b46e92ef6b 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/compile/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/compile/index.html @@ -76,7 +76,7 @@ regexObj.compile("new foo", "g"); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -99,7 +99,7 @@ regexObj.compile("new foo", "g"); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/flags/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/flags/index.html index bb74a28131..e5ffd31071 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/flags/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/flags/index.html @@ -59,7 +59,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/flags <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -82,7 +82,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/flags </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/global/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/global/index.html index cddfc3724f..9ac9219ec2 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/global/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/global/index.html @@ -51,7 +51,7 @@ console.log(regex.global) // true </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -73,7 +73,7 @@ console.log(regex.global) // true </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/ignorecase/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/ignorecase/index.html index b2d0742626..7492cf627e 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/ignorecase/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/ignorecase/index.html @@ -51,7 +51,7 @@ console.log(regex.ignoreCase) // true </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -73,7 +73,7 @@ console.log(regex.ignoreCase) // true </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/input/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/input/index.html index 87b9ecb657..ede21a2dfa 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/input/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/input/index.html @@ -40,7 +40,7 @@ RegExp.$_; // "hi world!" <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -63,7 +63,7 @@ RegExp.$_; // "hi world!" </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex/index.html index 4931537cb6..f7e667288f 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex/index.html @@ -72,7 +72,7 @@ console.log(re.lastIndex);</pre> </table> <h2 id="浏览器兼容性" style="margin-bottom: 20px; line-height: 30px;">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -94,7 +94,7 @@ console.log(re.lastIndex);</pre> </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastmatch/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastmatch/index.html index 71a49daf44..74bf3f095d 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastmatch/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastmatch/index.html @@ -39,7 +39,7 @@ RegExp['$&']; // "hi" <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -62,7 +62,7 @@ RegExp['$&']; // "hi" </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastparen/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastparen/index.html index 0424c58ab3..f7fb73f49f 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastparen/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastparen/index.html @@ -39,7 +39,7 @@ RegExp['$+']; // "hi" <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -62,7 +62,7 @@ RegExp['$+']; // "hi" </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/leftcontext/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/leftcontext/index.html index b2bf7596ce..9a0a93d3e4 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/leftcontext/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/leftcontext/index.html @@ -39,7 +39,7 @@ RegExp['$`']; // "hello " <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -62,7 +62,7 @@ RegExp['$`']; // "hello " </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/multiline/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/multiline/index.html index 8f9a9adbd6..3405a93a1d 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/multiline/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/multiline/index.html @@ -52,7 +52,7 @@ console.log(regex.multiline) // true </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -74,7 +74,7 @@ console.log(regex.multiline) // true </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/n/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/n/index.html index 5101f73b28..3b961acf2d 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/n/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/n/index.html @@ -51,7 +51,7 @@ RegExp.$2; // "Smith" <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -74,7 +74,7 @@ RegExp.$2; // "Smith" </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/rightcontext/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/rightcontext/index.html index 5426301369..d47f844db5 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/rightcontext/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/rightcontext/index.html @@ -39,7 +39,7 @@ RegExp["$'"]; // " world!" <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -62,7 +62,7 @@ RegExp["$'"]; // " world!" </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html index 8f526e39ca..3bd290c609 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html @@ -54,7 +54,7 @@ console.log(regex.source); // "fooBar",不包含 /.../ 和 "ig"。 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -77,7 +77,7 @@ console.log(regex.source); // "fooBar",不包含 /.../ 和 "ig"。 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/tostring/index.html index 22aef815b4..86322dbc18 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/tostring/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/tostring/index.html @@ -54,7 +54,7 @@ alert(foo.toString()); // 显示 "/bar/g" </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -76,7 +76,7 @@ alert(foo.toString()); // 显示 "/bar/g" </tbody> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/unicode/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/unicode/index.html index bd4253824c..ee559098cd 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/unicode/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/unicode/index.html @@ -50,7 +50,7 @@ console.log(regex.unicode); // true <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -75,7 +75,7 @@ console.log(regex.unicode); // true </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html index 6103b63a67..567dd3dc4c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html @@ -64,7 +64,7 @@ mySet.has("bar") // false <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -87,7 +87,7 @@ mySet.has("bar") // false </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html index 5602ae7942..3d11a91183 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html @@ -64,7 +64,7 @@ mySet.has("foo"); // 返回 false,"foo" 已经成功删除 <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -87,7 +87,7 @@ mySet.has("foo"); // 返回 false,"foo" 已经成功删除 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/entries/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/entries/index.html index f73a1e1a26..8f737249ae 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/set/entries/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/set/entries/index.html @@ -57,7 +57,7 @@ console.log(setIter.next().value); // ["baz", "baz"] <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -80,7 +80,7 @@ console.log(setIter.next().value); // ["baz", "baz"] </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html index 3b8dacfefc..6f08ab121b 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html @@ -89,7 +89,7 @@ new Set(["foo", "bar", undefined]).forEach(logSetElements); <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -112,7 +112,7 @@ new Set(["foo", "bar", undefined]).forEach(logSetElements); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html index 1ffca26498..0bbad115ec 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html @@ -70,7 +70,7 @@ set1.add({'key1': 1}); // 现在 set1 中有2条(不同引用的)对象了</ <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -93,7 +93,7 @@ set1.add({'key1': 1}); // 现在 set1 中有2条(不同引用的)对象了</ </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/@@iterator/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/@@iterator/index.html index 8ea489430f..abbf9ae0b8 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/@@iterator/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/@@iterator/index.html @@ -80,7 +80,7 @@ for (var v of string) { <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -103,7 +103,7 @@ for (var v of string) { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/anchor/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/anchor/index.html index 0b3a4169cd..b48e62e0f8 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/anchor/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/anchor/index.html @@ -20,7 +20,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/anchor <p><code><strong>anchor()</strong></code> 方法创建一个 {{HTMLElement("a")}} HTML 锚元素,被用作超文本靶标(hypertext target)。</p> -<p id="Syntax">语法</p> +<h2>语法</h2> <pre class="syntaxbox"><code>str.anchor(<em>name</em>) </code></pre> @@ -77,7 +77,7 @@ document.body.innerHTML = myString.anchor("contents_anchor");</pre> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -100,7 +100,7 @@ document.body.innerHTML = myString.anchor("contents_anchor");</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/big/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/big/index.html index 127079b1df..e45ae963c1 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/big/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/big/index.html @@ -67,7 +67,7 @@ console.log(worldString.fontsize(7)); // <fontsize=7>Hello, world</font <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -90,7 +90,7 @@ console.log(worldString.fontsize(7)); // <fontsize=7>Hello, world</font </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/blink/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/blink/index.html index 88cdb9cbf8..e423d8fbfd 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/blink/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/blink/index.html @@ -62,7 +62,7 @@ console.log(worldString.strike()); // <strike>Hello, world</strike> <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -85,7 +85,7 @@ console.log(worldString.strike()); // <strike>Hello, world</strike> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/bold/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/bold/index.html index 3b2c66d11a..43d6f9d448 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/bold/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/bold/index.html @@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/bold --- <p>{{JSRef}} {{deprecated_header}}</p> -<p id="概述"><strong><code>bold() </code></strong><code>方法会创建</code> HTML 元素 “b”,并将字符串加粗展示。</p> +<p><strong><code>bold() </code></strong><code>方法会创建</code> HTML 元素 “b”,并将字符串加粗展示。</p> <h2 id="语法">语法</h2> @@ -62,7 +62,7 @@ console.log(worldString.strike()); // <strike>Hello, world</strike> <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -85,7 +85,7 @@ console.log(worldString.strike()); // <strike>Hello, world</strike> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/charat/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/charat/index.html index 3ed7dd0e7b..31b512ada0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/charat/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/charat/index.html @@ -221,7 +221,7 @@ function getWholeCharAndI (str, i) { <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -244,7 +244,7 @@ function getWholeCharAndI (str, i) { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/codepointat/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/codepointat/index.html index 567de8abc1..9a204e9c4b 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/codepointat/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/codepointat/index.html @@ -115,7 +115,7 @@ if (!String.prototype.codePointAt) { <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -138,7 +138,7 @@ if (!String.prototype.codePointAt) { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/fixed/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/fixed/index.html index 03576dd5a1..28dd7c8696 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/fixed/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/fixed/index.html @@ -22,7 +22,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/fixed <h2 id="描述">描述</h2> -<p id="fixed()_方法将一个字符串包裹在<tt><tt>标签中,比如_<tt>str<tt>."><code style="font-size: 14px; font-style: normal; font-weight: normal; line-height: 1.5;">fixed()</code> 方法将一个字符串包裹在<tt></tt>标签中,比如: <code style="font-size: 14px; font-style: normal; font-weight: normal; line-height: 1.5;">"<tt>str</tt>"</code>.</p> +<p><code style="font-size: 14px; font-style: normal; font-weight: normal; line-height: 1.5;">fixed()</code> 方法将一个字符串包裹在<tt></tt>标签中,比如: <code style="font-size: 14px; font-style: normal; font-weight: normal; line-height: 1.5;">"<tt>str</tt>"</code>.</p> <h2 id="举例">举例</h2> @@ -60,7 +60,7 @@ console.log(worldString.fixed()); // "<tt>Hello, world</tt>" <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -83,7 +83,7 @@ console.log(worldString.fixed()); // "<tt>Hello, world</tt>" </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/fontcolor/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/fontcolor/index.html index 64c397f8e7..551cb5ffa0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/fontcolor/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/fontcolor/index.html @@ -84,7 +84,7 @@ console.log(worldString.fontcolor('FF00') + ' is red in hexadecimal' <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -107,7 +107,7 @@ console.log(worldString.fontcolor('FF00') + ' is red in hexadecimal' </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/fontsize/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/fontsize/index.html index b5662d12aa..005cfe0fb0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/fontsize/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/fontsize/index.html @@ -74,7 +74,7 @@ console.log(worldString.fontsize(7)); // <font size="7">Hello, world</f <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -97,7 +97,7 @@ console.log(worldString.fontsize(7)); // <font size="7">Hello, world</f </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/index.html index c69faea0c4..bcfc0bf5ec 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/index.html @@ -298,7 +298,7 @@ for (let i = 0, n = inputValues.length; i < n; ++i) { <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -321,7 +321,7 @@ for (let i = 0, n = inputValues.length; i < n; ++i) { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/indexof/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/indexof/index.html index 80213be40f..28f9d9a5fc 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/indexof/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/indexof/index.html @@ -69,7 +69,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/indexOf "Blue Whale".indexOf("", 10) // 返回 10 "Blue Whale".indexOf("", 11) // 返回 10</pre> -<p id="Example_indexOf_and_case-sensitivity"><code>indexOf</code> 方法是区分大小写的。例如,下面的表达式将返回 <code>-1</code>:</p> +<p><code>indexOf</code> 方法是区分大小写的。例如,下面的表达式将返回 <code>-1</code>:</p> <pre class="brush: js">"Blue Whale".indexOf("blue") // 返回 -1 </pre> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/italics/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/italics/index.html index 80ee07eabc..91f574b4bf 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/italics/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/italics/index.html @@ -52,7 +52,7 @@ console.log(worldString.strike()); // <s>Hello, world</s></pre> <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -75,7 +75,7 @@ console.log(worldString.strike()); // <s>Hello, world</s></pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/lastindexof/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/lastindexof/index.html index e4b6dd8681..56ba74598a 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/lastindexof/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/lastindexof/index.html @@ -103,7 +103,7 @@ console.log("The index of 'new' from the end is " + anyString.lastIndexOf("new") <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -126,7 +126,7 @@ console.log("The index of 'new' from the end is " + anyString.lastIndexOf("new") </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/length/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/length/index.html index c51f812f6d..9ec301ff64 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/length/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/length/index.html @@ -80,7 +80,7 @@ console.log("The empty string is has a length of " + empty.length); <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -103,7 +103,7 @@ console.log("The empty string is has a length of " + empty.length); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/match/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/match/index.html index 5f5b701e63..d93b8bebef 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/match/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/match/index.html @@ -149,7 +149,7 @@ str3.match(null); // 返回["null"]</code></pre> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -172,7 +172,7 @@ str3.match(null); // 返回["null"]</code></pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/small/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/small/index.html index 7b55c68248..834ceed5ac 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/small/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/small/index.html @@ -63,7 +63,7 @@ console.log(worldString.fontsize(7)); // <font size="7">Hello, world</f <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -86,7 +86,7 @@ console.log(worldString.fontsize(7)); // <font size="7">Hello, world</f </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/strike/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/strike/index.html index 3e904a9651..12304c18cf 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/strike/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/strike/index.html @@ -59,7 +59,7 @@ console.log(worldString.strike()); // <strike>Hello, world</strike> <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -82,7 +82,7 @@ console.log(worldString.strike()); // <strike>Hello, world</strike> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/sub/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/sub/index.html index 8c47471d25..69402cb285 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/sub/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/sub/index.html @@ -64,7 +64,7 @@ console.log('This is what a ' + subText.sub() + ' looks like.'); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -87,7 +87,7 @@ console.log('This is what a ' + subText.sub() + ' looks like.'); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/substr/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/substr/index.html index 782816ee91..2aad2f2647 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/substr/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/substr/index.html @@ -108,7 +108,7 @@ if ('ab'.substr(-1) != 'b') <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -131,7 +131,7 @@ if ('ab'.substr(-1) != 'b') </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/substring/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/substring/index.html index f35badbe86..445b0dfea5 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/substring/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/substring/index.html @@ -138,7 +138,7 @@ replaceString("World", "Web", "Brave New World");</pre> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -161,7 +161,7 @@ replaceString("World", "Web", "Brave New World");</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/sup/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/sup/index.html index 118bbd1f2e..15616dfc08 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/sup/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/sup/index.html @@ -63,7 +63,7 @@ console.log('This is what a ' + subText.sub() + ' looks like.'); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -86,7 +86,7 @@ console.log('This is what a ' + subText.sub() + ' looks like.'); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tolocalelowercase/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tolocalelowercase/index.html index 95b8378bbe..c4f1025029 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/tolocalelowercase/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/tolocalelowercase/index.html @@ -88,7 +88,7 @@ let locales = ['tr', 'TR', 'tr-TR', 'tr-u-co-search', 'tr-x-turkish']; <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -111,7 +111,7 @@ let locales = ['tr', 'TR', 'tr-TR', 'tr-u-co-search', 'tr-x-turkish']; </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tolocaleuppercase/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tolocaleuppercase/index.html index d6fe58b0a5..b1b92a19a6 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/tolocaleuppercase/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/tolocaleuppercase/index.html @@ -83,7 +83,3 @@ let locales = ['lt', 'LT', 'lt-LT', 'lt-u-co-phonebk', 'lt-x-lietuva']; <li>{{jsxref("String.prototype.toLowerCase()")}}</li> <li>{{jsxref("String.prototype.toUpperCase()")}}</li> </ul> - -<div id="gtx-trans" style="position: absolute; left: 11px; top: 96px;"> -<div class="gtx-trans-icon"></div> -</div> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tolowercase/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tolowercase/index.html index b1b9f6266d..f556822b2e 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/tolowercase/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/tolowercase/index.html @@ -18,8 +18,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toLowerCase <pre class="syntaxbox language-html" style="margin-bottom: 0px; padding: 1em; border-left-width: 6px; border-left-style: solid; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 14px; direction: ltr; white-space: normal; text-shadow: none; background-color: rgba(212, 221, 228, 0.498039);"><code class="language-html" style="font-family: Consolas, Monaco, 'Andale Mono', monospace; direction: ltr; color: inherit; text-shadow: none;">str.toLowerCase()</code> </pre> -<p id="sect1"></p> - <h3 id="返回值">返回值</h3> <p>一个新的字符串,表示转换为小写的调用字符串。</p> @@ -79,7 +77,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toLowerCase <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -102,7 +100,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toLowerCase </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tosource/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tosource/index.html index 7914776a25..756758d877 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/tosource/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/tosource/index.html @@ -36,7 +36,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toSource <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -59,7 +59,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toSource </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tostring/index.html index 192ae75b12..f8f9d021da 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/tostring/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/tostring/index.html @@ -68,7 +68,7 @@ alert(x.toString()) // 输出 "Hello world"</pre> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -91,7 +91,7 @@ alert(x.toString()) // 输出 "Hello world"</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/for/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/for/index.html index ee0b84406a..e0cf9c8bd0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/symbol/for/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/for/index.html @@ -99,7 +99,7 @@ Symbol.for("mdn.bar"); <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -122,7 +122,7 @@ Symbol.for("mdn.bar"); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/keyfor/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/keyfor/index.html index c38fa9307b..f42776146b 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/symbol/keyfor/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/keyfor/index.html @@ -60,7 +60,7 @@ Symbol.keyFor(Symbol.iterator) // undefined <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -83,7 +83,7 @@ Symbol.keyFor(Symbol.iterator) // undefined </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html index f3d595a2fb..7f3ac000d6 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html @@ -55,7 +55,7 @@ console.log('foobar'.search(new caseInsensitiveSearch('BaR'))); <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -78,7 +78,7 @@ console.log('foobar'.search(new caseInsensitiveSearch('BaR'))); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/split/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/split/index.html index 221254014b..eefbc9d547 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/symbol/split/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/split/index.html @@ -59,7 +59,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Symbol/split <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -82,7 +82,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Symbol/split </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html index 61e4d36fb9..bbf27b98d6 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html @@ -70,7 +70,7 @@ console.log(obj2 + ""); // "true" -- hint 参数值是 "default" <p> {{Compat("javascript.builtins.Symbol.toPrimitive")}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> </tbody> diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/tosource/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/tosource/index.html index 56d7571d55..6342361cc9 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/symbol/tosource/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/tosource/index.html @@ -38,7 +38,7 @@ sym.toSource()</pre> <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -61,7 +61,7 @@ sym.toSource()</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> 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 1ed899232e..44be848f73 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 @@ -61,7 +61,7 @@ Symbol.for("foo").toString() // "Symbol(foo)" <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -84,7 +84,7 @@ Symbol.for("foo").toString() // "Symbol(foo)" </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/tostringtag/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/tostringtag/index.html index c09f904a6e..82f699b536 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/symbol/tostringtag/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/tostringtag/index.html @@ -74,7 +74,7 @@ Object.prototype.toString.call(new ValidatorClass()); // "[object Validator]" <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -97,7 +97,7 @@ Object.prototype.toString.call(new ValidatorClass()); // "[object Validator]" </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/valueof/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/valueof/index.html index a5beee61d4..9185610400 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/symbol/valueof/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/valueof/index.html @@ -51,7 +51,7 @@ Object(Symbol("foo")).toString() + "bar"; <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -74,7 +74,7 @@ Object(Symbol("foo")).toString() + "bar"; </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/syntaxerror/index.html b/files/zh-cn/web/javascript/reference/global_objects/syntaxerror/index.html index ff6fb0181c..bdbd1ed86c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/syntaxerror/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/syntaxerror/index.html @@ -115,7 +115,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/SyntaxError <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -138,7 +138,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/SyntaxError </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@iterator/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@iterator/index.html index 0d6556b0ca..3704f46a52 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@iterator/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@iterator/index.html @@ -64,7 +64,7 @@ console.log(eArr.next().value); // 50 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -87,7 +87,7 @@ console.log(eArr.next().value); // 50 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@species/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@species/index.html index 816a29d721..b4766bd8f3 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@species/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/@@species/index.html @@ -70,7 +70,7 @@ Float32Array[Symbol.species]; // function Float32Array() <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -93,7 +93,7 @@ Float32Array[Symbol.species]; // function Float32Array() </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/buffer/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/buffer/index.html index 9affc3690f..93ffe360f2 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/buffer/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/buffer/index.html @@ -50,7 +50,7 @@ uint16.buffer; // ArrayBuffer { byteLength: 8 } <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -73,7 +73,7 @@ uint16.buffer; // ArrayBuffer { byteLength: 8 } </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytelength/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytelength/index.html index 7d09a0ec60..8de0fa848f 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytelength/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytelength/index.html @@ -57,7 +57,7 @@ uint8.byteLength; // 6 (根据被构造的 Uint8Array 的 offset) <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -80,7 +80,7 @@ uint8.byteLength; // 6 (根据被构造的 Uint8Array 的 offset) </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/byteoffset/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/byteoffset/index.html index dfbb599911..4c99e61454 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/byteoffset/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/byteoffset/index.html @@ -54,7 +54,7 @@ uint8.byteOffset; // 3 (在构造 Uint8Array 时指定) <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -77,7 +77,7 @@ uint8.byteOffset; // 3 (在构造 Uint8Array 时指定) </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytes_per_element/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytes_per_element/index.html index c49ee169ba..ce51212c7a 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytes_per_element/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/bytes_per_element/index.html @@ -57,7 +57,7 @@ Float64Array.BYTES_PER_ELEMENT; // 8</pre> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -80,7 +80,7 @@ Float64Array.BYTES_PER_ELEMENT; // 8</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/copywithin/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/copywithin/index.html index 845b742ab4..ed9dd53aab 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/copywithin/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/copywithin/index.html @@ -71,7 +71,7 @@ console.log(uint8); // Uint8Array [ 1, 2, 3, 1, 2, 3, 0, 0 ] <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -96,7 +96,7 @@ console.log(uint8); // Uint8Array [ 1, 2, 3, 1, 2, 3, 0, 0 ] </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/entries/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/entries/index.html index 3dd4b5350d..606e75883c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/entries/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/entries/index.html @@ -65,7 +65,7 @@ console.log(eArr.next().value); // [4, 50] <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -88,7 +88,7 @@ console.log(eArr.next().value); // [4, 50] </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/every/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/every/index.html index 6e6e1260ed..f38c199989 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/every/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/every/index.html @@ -88,7 +88,7 @@ new Uint8Array([12, 54, 18, 130, 44]).every(elem => elem >= 10); // true</ <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -111,7 +111,7 @@ new Uint8Array([12, 54, 18, 130, 44]).every(elem => elem >= 10); // true</ </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/fill/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/fill/index.html index 3c89cc7f5b..ab7506d843 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/fill/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/fill/index.html @@ -79,7 +79,7 @@ if (!Uint8Array.prototype.fill) { <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -102,7 +102,7 @@ if (!Uint8Array.prototype.fill) { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/filter/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/filter/index.html index 59af0c38db..c5d87874b3 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/filter/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/filter/index.html @@ -88,7 +88,7 @@ new Uint8Array([12, 5, 8, 130, 44]).filter(isBigEnough); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -111,7 +111,7 @@ new Uint8Array([12, 5, 8, 130, 44]).filter(isBigEnough); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/find/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/find/index.html index 1b6b25c036..8482375404 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/find/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/find/index.html @@ -92,7 +92,7 @@ console.log(uint8.find(isPrime)); // 5</pre> <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -115,7 +115,7 @@ console.log(uint8.find(isPrime)); // 5</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/findindex/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/findindex/index.html index 4ebcc0d816..938419d229 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/findindex/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/findindex/index.html @@ -132,7 +132,7 @@ console.log(uint16.findIndex(isPrime)); // 2 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -155,7 +155,7 @@ console.log(uint16.findIndex(isPrime)); // 2 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/includes/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/includes/index.html index 9496cdc621..efa225622f 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/includes/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/includes/index.html @@ -63,7 +63,7 @@ new Float64Array([NaN]).includes(NaN); // true; <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -88,7 +88,7 @@ new Float64Array([NaN]).includes(NaN); // true; </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/indexof/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/indexof/index.html index b7893c25f8..24d78f6487 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/indexof/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/indexof/index.html @@ -67,7 +67,7 @@ uint8.indexOf(2, -3); // 0 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -92,7 +92,7 @@ uint8.indexOf(2, -3); // 0 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/join/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/join/index.html index 31dbcc2ae1..3d41de4353 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/join/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/join/index.html @@ -70,7 +70,7 @@ if (!Uint8Array.prototype.join) { <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -95,7 +95,7 @@ if (!Uint8Array.prototype.join) { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/keys/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/keys/index.html index dbed46268a..4b10667f83 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/keys/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/keys/index.html @@ -65,7 +65,7 @@ console.log(eArr.next().value); // 4 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -90,7 +90,7 @@ console.log(eArr.next().value); // 4 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/lastindexof/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/lastindexof/index.html index 8552cf0dae..16be84ff24 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/lastindexof/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/lastindexof/index.html @@ -65,7 +65,7 @@ uint8.lastIndexOf(2, -1); // 3 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -90,7 +90,7 @@ uint8.lastIndexOf(2, -1); // 3 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/length/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/length/index.html index 0db01b1d09..797f2ea5cb 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/length/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/length/index.html @@ -57,7 +57,7 @@ uint8.length; // 6 (根据被构造的 Uint8Array 的 offset) <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -80,7 +80,7 @@ uint8.length; // 6 (根据被构造的 Uint8Array 的 offset) </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/map/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/map/index.html index b32a447ca3..959930fbda 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/map/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/map/index.html @@ -95,7 +95,7 @@ var doubles = numbers.map(function(num) { <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -118,7 +118,7 @@ var doubles = numbers.map(function(num) { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/name/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/name/index.html index 4de20db129..cfe0be7792 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/name/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/name/index.html @@ -61,7 +61,7 @@ Float64Array.name; // "Float64Array"</pre> <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -84,7 +84,7 @@ Float64Array.name; // "Float64Array"</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/of/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/of/index.html index 1aafb4c2c6..831a2a0b84 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/of/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/of/index.html @@ -82,7 +82,7 @@ Int16Array.of(undefined); // IntArray [ 0 ] <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -105,7 +105,7 @@ Int16Array.of(undefined); // IntArray [ 0 ] </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduce/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduce/index.html index fe10f859c0..929e05ba86 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduce/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduce/index.html @@ -79,7 +79,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/TypedArray/reduce <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -104,7 +104,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/TypedArray/reduce </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduceright/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduceright/index.html index ce443c7174..172c9706f7 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduceright/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/reduceright/index.html @@ -86,7 +86,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -111,7 +111,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/reverse/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/reverse/index.html index b923d247d6..9011f29dac 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/reverse/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/reverse/index.html @@ -49,7 +49,7 @@ console.log(uint8); // Uint8Array [3, 2, 1] <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -74,7 +74,7 @@ console.log(uint8); // Uint8Array [3, 2, 1] </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/set/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/set/index.html index 44e1793347..94827b7b23 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/set/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/set/index.html @@ -74,7 +74,7 @@ console.log(uint8); // Uint8Array [ 0, 0, 0, 1, 2, 3, 0, 0 ] <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -97,7 +97,7 @@ console.log(uint8); // Uint8Array [ 0, 0, 0, 1, 2, 3, 0, 0 ] </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/sort/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/sort/index.html index 1b0615c342..14bb6c17dc 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/sort/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/sort/index.html @@ -71,7 +71,7 @@ numbers.sort(compareNumbers); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -94,7 +94,7 @@ numbers.sort(compareNumbers); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/tostring/index.html index 5da94eb0e4..b5417f1a27 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/tostring/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/tostring/index.html @@ -59,7 +59,7 @@ numbers.toString(); // "[object Uint8Array]" <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -82,7 +82,7 @@ numbers.toString(); // "[object Uint8Array]" </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/values/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/values/index.html index 16d89f9aee..3b88e98f0b 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/values/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/values/index.html @@ -65,7 +65,7 @@ console.log(eArr.next().value); // 50 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -90,7 +90,7 @@ console.log(eArr.next().value); // 50 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/uint8clampedarray/index.html b/files/zh-cn/web/javascript/reference/global_objects/uint8clampedarray/index.html index d4a018398c..f1fe65cc75 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/uint8clampedarray/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/uint8clampedarray/index.html @@ -179,7 +179,7 @@ var uintc8 = new Uint8ClampedArray(iterable); <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -218,7 +218,7 @@ var uintc8 = new Uint8ClampedArray(iterable); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakmap/clear/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakmap/clear/index.html index b2d51c64a1..5340ac3ee0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/weakmap/clear/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/weakmap/clear/index.html @@ -49,7 +49,7 @@ wm.has(window) // false <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -72,7 +72,7 @@ wm.has(window) // false </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html index 337563ecd3..b172fc0698 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html @@ -55,7 +55,7 @@ wm.has(window); // 返回 false,因为 window 对象已经被删除了。 <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -78,7 +78,7 @@ wm.has(window); // 返回 false,因为 window 对象已经被删除了。 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakmap/get/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakmap/get/index.html index 39357eb6e4..4e9692907a 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/weakmap/get/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/weakmap/get/index.html @@ -59,7 +59,7 @@ wm.get("baz"); // 返回 undefined. <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -82,7 +82,7 @@ wm.get("baz"); // 返回 undefined. </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakmap/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakmap/has/index.html index 2c411d429d..209fd757d0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/weakmap/has/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/weakmap/has/index.html @@ -62,7 +62,7 @@ wm.has("baz"); // returns false <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -85,7 +85,7 @@ wm.has("baz"); // returns false </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakset/add/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakset/add/index.html index d163451c4c..01209019ba 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/weakset/add/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/weakset/add/index.html @@ -66,7 +66,7 @@ ws.add(1); <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -89,7 +89,7 @@ ws.add(1); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakset/delete/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakset/delete/index.html index d2826e7cd4..b7f9c4f1b2 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/weakset/delete/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/weakset/delete/index.html @@ -63,7 +63,7 @@ ws.has(window); // 返回 false。因为 WeakSet 中已经不存在 window <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -86,7 +86,7 @@ ws.has(window); // 返回 false。因为 WeakSet 中已经不存在 window </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakset/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakset/has/index.html index 7a06b243e3..60a33bf90e 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/weakset/has/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/weakset/has/index.html @@ -63,7 +63,7 @@ mySet.has(obj); // 返回 false <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -86,7 +86,7 @@ mySet.has(obj); // 返回 false </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/operators/await/index.html b/files/zh-cn/web/javascript/reference/operators/await/index.html index 8b07b23e41..4f0ea9b0c3 100644 --- a/files/zh-cn/web/javascript/reference/operators/await/index.html +++ b/files/zh-cn/web/javascript/reference/operators/await/index.html @@ -97,7 +97,7 @@ f3();</pre> <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -122,7 +122,7 @@ f3();</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/operators/function/index.html b/files/zh-cn/web/javascript/reference/operators/function/index.html index 50ebd46d2c..bf04ca97d9 100644 --- a/files/zh-cn/web/javascript/reference/operators/function/index.html +++ b/files/zh-cn/web/javascript/reference/operators/function/index.html @@ -122,7 +122,7 @@ console.log(bar === baz); // false (errors because baz == undefined)</code> <p>{{ CompatibilityTable() }}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -145,7 +145,7 @@ console.log(bar === baz); // false (errors because baz == undefined)</code> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-cn/web/javascript/reference/operators/increment/index.html b/files/zh-cn/web/javascript/reference/operators/increment/index.html index 31620cb751..feb73deedb 100644 --- a/files/zh-cn/web/javascript/reference/operators/increment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/increment/index.html @@ -78,7 +78,3 @@ b = ++a; <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Unary_negation">Unary negation operator</a></li> <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Unary_plus">Unary plus operator</a></li> </ul> - -<div id="gtx-trans" style="position: absolute; left: 126px; top: 21px;"> -<div class="gtx-trans-icon"></div> -</div> diff --git a/files/zh-cn/web/javascript/reference/operators/inequality/index.html b/files/zh-cn/web/javascript/reference/operators/inequality/index.html index cbc90433e7..6d5ed6ff6c 100644 --- a/files/zh-cn/web/javascript/reference/operators/inequality/index.html +++ b/files/zh-cn/web/javascript/reference/operators/inequality/index.html @@ -98,7 +98,3 @@ object2 != object2 // false</pre> <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Operators/Strict_equality">Strict equality operator</a></li> <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Operators/Strict_inequality">Strict inequality operator</a></li> </ul> - -<div id="gtx-trans" style="position: absolute; left: 16px; top: 1743.2px;"> -<div class="gtx-trans-icon"></div> -</div> diff --git a/files/zh-cn/web/javascript/reference/operators/nullish_coalescing_operator/index.html b/files/zh-cn/web/javascript/reference/operators/nullish_coalescing_operator/index.html index 1dfd0302a9..a70b8dad19 100644 --- a/files/zh-cn/web/javascript/reference/operators/nullish_coalescing_operator/index.html +++ b/files/zh-cn/web/javascript/reference/operators/nullish_coalescing_operator/index.html @@ -146,7 +146,3 @@ console.log(foo.someBarProp?.toUpperCase()); // undefined <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Operators/Logical_OR">逻辑或操作符(<code>||</code>)</a></li> <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/Default_parameters">函数中的默认参数值</a></li> </ul> - -<div id="gtx-trans" style="position: absolute; left: 161px; top: 68px;"> -<div class="gtx-trans-icon"></div> -</div> diff --git a/files/zh-cn/web/javascript/reference/operators/typeof/index.html b/files/zh-cn/web/javascript/reference/operators/typeof/index.html index 60cd51b992..b4fe4061a0 100644 --- a/files/zh-cn/web/javascript/reference/operators/typeof/index.html +++ b/files/zh-cn/web/javascript/reference/operators/typeof/index.html @@ -258,7 +258,7 @@ class newClass{};</pre> <h2 id="浏览器兼容">浏览器兼容</h2> -<div id="compat-desktop"> +<div> <p>{{Compat("javascript.operators.typeof")}}</p> <h2 id="IE_特别提示">IE 特别提示</h2> @@ -278,7 +278,3 @@ class newClass{};</pre> <li><a href="https://github.com/tc39/ecma262/issues/668">document.all willful violation of the standard</a></li> <li><a href="https://2ality.com/2013/10/typeof-null.html">The history of “typeof null”</a></li> </ul> - -<div id="gtx-trans" style="position: absolute; left: 101px; top: 2989.43px;"> -<div class="gtx-trans-icon"></div> -</div> diff --git a/files/zh-cn/web/javascript/reference/statements/export/index.html b/files/zh-cn/web/javascript/reference/statements/export/index.html index f2a8e5a226..3f955a136f 100644 --- a/files/zh-cn/web/javascript/reference/statements/export/index.html +++ b/files/zh-cn/web/javascript/reference/statements/export/index.html @@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Statements/export <p>在创建JavaScript模块时,<code><strong>export</strong></code> 语句用于从模块中导出实时绑定的函数、对象或原始值,以便其他程序可以通过 {{jsxref("Statements/import", "import")}} 语句使用它们。被导出的绑定值依然可以在本地进行修改。在使用import进行导入时,这些绑定值只能被导入模块所读取,但在export导出模块中对这些绑定值进行修改,所修改的值也会实时地更新。</p> -<p dir="ltr" id="tw-target-text">无论您是否声明,导出的模块都处于{{jsxref("Strict_mode","严格模式")}}。 export语句不能用在嵌入式脚本中。</p> +<p dir="ltr">无论您是否声明,导出的模块都处于{{jsxref("Strict_mode","严格模式")}}。 export语句不能用在嵌入式脚本中。</p> <h2 id="语法">语法</h2> diff --git a/files/zh-cn/web/javascript/reference/statements/for...in/index.html b/files/zh-cn/web/javascript/reference/statements/for...in/index.html index b1ec38f6ef..8b3b346fcc 100644 --- a/files/zh-cn/web/javascript/reference/statements/for...in/index.html +++ b/files/zh-cn/web/javascript/reference/statements/for...in/index.html @@ -149,7 +149,3 @@ for (var i = 0 in obj) { <li>{{jsxref("Object.prototype.hasOwnProperty()")}}</li> <li>{{jsxref("Array.prototype.forEach()")}}</li> </ul> - -<div id="gtx-trans" style="position: absolute; left: 606px; top: 659px;"> -<div class="gtx-trans-icon"></div> -</div> diff --git a/files/zh-cn/web/javascript/reference/statements/let/index.html b/files/zh-cn/web/javascript/reference/statements/let/index.html index 0dc1a84365..320e8788a6 100644 --- a/files/zh-cn/web/javascript/reference/statements/let/index.html +++ b/files/zh-cn/web/javascript/reference/statements/let/index.html @@ -65,7 +65,7 @@ function letTest() { } </pre> -<p id="Scoping_rules">在程序和方法的最顶端,<strong><code>let</code></strong>不像 <strong><code>var</code></strong> 一样,<strong><code>let</code></strong>不会在全局对象里新建一个属性。比如:</p> +<p>在程序和方法的最顶端,<strong><code>let</code></strong>不像 <strong><code>var</code></strong> 一样,<strong><code>let</code></strong>不会在全局对象里新建一个属性。比如:</p> <p>位于函数或代码顶部的<strong><code>var</code></strong>声明会给全局对象新增属性, 而<strong><code>let</code></strong>不会。例如:</p> |