diff options
Diffstat (limited to 'files/zh-tw/web/javascript/reference')
40 files changed, 80 insertions, 80 deletions
diff --git a/files/zh-tw/web/javascript/reference/classes/constructor/index.html b/files/zh-tw/web/javascript/reference/classes/constructor/index.html index aa0e2bf896..2d349f8b4e 100644 --- a/files/zh-tw/web/javascript/reference/classes/constructor/index.html +++ b/files/zh-tw/web/javascript/reference/classes/constructor/index.html @@ -79,7 +79,7 @@ translation_of: Web/JavaScript/Reference/Classes/constructor <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -110,7 +110,7 @@ translation_of: Web/JavaScript/Reference/Classes/constructor </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/classes/index.html b/files/zh-tw/web/javascript/reference/classes/index.html index e3a62d781b..d81add9317 100644 --- a/files/zh-tw/web/javascript/reference/classes/index.html +++ b/files/zh-tw/web/javascript/reference/classes/index.html @@ -298,7 +298,7 @@ l.speak(); <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -324,7 +324,7 @@ l.speak(); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/classes/static/index.html b/files/zh-tw/web/javascript/reference/classes/static/index.html index 49e18b44bb..77faa35833 100644 --- a/files/zh-tw/web/javascript/reference/classes/static/index.html +++ b/files/zh-tw/web/javascript/reference/classes/static/index.html @@ -66,7 +66,7 @@ console.log(tp.triple()); // 'tp.triple is not a function'.</pre> <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -89,7 +89,7 @@ console.log(tp.triple()); // 'tp.triple is not a function'.</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/functions/arguments/callee/index.html b/files/zh-tw/web/javascript/reference/functions/arguments/callee/index.html index 397eb08d00..fe8b1dcda3 100644 --- a/files/zh-tw/web/javascript/reference/functions/arguments/callee/index.html +++ b/files/zh-tw/web/javascript/reference/functions/arguments/callee/index.html @@ -142,7 +142,7 @@ john();</pre> <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -165,7 +165,7 @@ john();</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/functions/default_parameters/index.html b/files/zh-tw/web/javascript/reference/functions/default_parameters/index.html index e7a796f4d1..1f37ee85c0 100644 --- a/files/zh-tw/web/javascript/reference/functions/default_parameters/index.html +++ b/files/zh-tw/web/javascript/reference/functions/default_parameters/index.html @@ -199,7 +199,7 @@ f(); // 6</pre> <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -238,7 +238,7 @@ f(); // 6</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/functions/index.html b/files/zh-tw/web/javascript/reference/functions/index.html index 718cc30c3e..ce6646918f 100644 --- a/files/zh-tw/web/javascript/reference/functions/index.html +++ b/files/zh-tw/web/javascript/reference/functions/index.html @@ -515,7 +515,7 @@ result = padZeros(5,4); // returns "0005" <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -554,7 +554,7 @@ result = padZeros(5,4); // returns "0005" </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/arraybuffer/index.html b/files/zh-tw/web/javascript/reference/global_objects/arraybuffer/index.html index 1fa59e5f0f..6882aaf6ec 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/arraybuffer/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/arraybuffer/index.html @@ -56,7 +56,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/ArrayBuffer <dd>Returns <code>true</code> if <code>arg</code> is one of the ArrayBuffer views, such as <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray">typed array objects</a> or a {{jsxref("DataView")}}. Returns <code>false</code> otherwise.</dd> <dt>{{jsxref("ArrayBuffer.transfer", "ArrayBuffer.transfer(oldBuffer [, newByteLength])")}} {{experimental_inline}}</dt> <dd> - <div class="line" id="file-arraybuffer-transfer-LC6">Returns a new <code>ArrayBuffer</code> whose contents are taken from the <code>oldBuffer</code>'s data and then is either truncated or zero-extended by <code>newByteLength</code>.</div> + <div class="line">Returns a new <code>ArrayBuffer</code> whose contents are taken from the <code>oldBuffer</code>'s data and then is either truncated or zero-extended by <code>newByteLength</code>.</div> </dd> </dl> @@ -115,7 +115,7 @@ var view = new Int32Array(buffer);</pre> <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -159,7 +159,7 @@ var view = new Int32Array(buffer);</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/boolean/index.html b/files/zh-tw/web/javascript/reference/global_objects/boolean/index.html index 6c8d690b15..0e817070dc 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/boolean/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/boolean/index.html @@ -138,7 +138,7 @@ var bObjProto = new Boolean({}); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -163,7 +163,7 @@ var bObjProto = new Boolean({}); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/dataview/index.html b/files/zh-tw/web/javascript/reference/global_objects/dataview/index.html index d7cf6d6ed4..8d4406dd9e 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/dataview/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/dataview/index.html @@ -109,7 +109,7 @@ dv.getInt16(1); //42 <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -132,7 +132,7 @@ dv.getInt16(1); //42 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/date/index.html b/files/zh-tw/web/javascript/reference/global_objects/date/index.html index 9e5675e682..1b1873dd22 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/date/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/date/index.html @@ -206,7 +206,7 @@ yourFunctionReturn = printElapsedTime(yourFunction); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -231,7 +231,7 @@ yourFunctionReturn = printElapsedTime(yourFunction); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/date/now/index.html b/files/zh-tw/web/javascript/reference/global_objects/date/now/index.html index 00b4842f0f..ca67a2e534 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/date/now/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/date/now/index.html @@ -67,7 +67,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/now <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -90,7 +90,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/now </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/date/utc/index.html b/files/zh-tw/web/javascript/reference/global_objects/date/utc/index.html index 60f1c555f0..50ab7590ea 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/date/utc/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/date/utc/index.html @@ -102,7 +102,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/UTC <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -125,7 +125,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/UTC </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/error/columnnumber/index.html b/files/zh-tw/web/javascript/reference/global_objects/error/columnnumber/index.html index 1db87220e8..ca1dc77233 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/error/columnnumber/index.html +++ b/files/zh-tw/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-tw/web/javascript/reference/global_objects/error/index.html b/files/zh-tw/web/javascript/reference/global_objects/error/index.html index 623a5dfeac..51e58faf45 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/error/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/error/index.html @@ -176,7 +176,7 @@ try { <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -199,7 +199,7 @@ try { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/function/apply/index.html b/files/zh-tw/web/javascript/reference/global_objects/function/apply/index.html index 698d2f46fc..9d5aba8312 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/function/apply/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/function/apply/index.html @@ -184,7 +184,7 @@ someobject.foo = function() { <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -215,7 +215,7 @@ someobject.foo = function() { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/function/bind/index.html b/files/zh-tw/web/javascript/reference/global_objects/function/bind/index.html index 7092477133..006db2aa4c 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/function/bind/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/function/bind/index.html @@ -260,7 +260,7 @@ slice(arguments); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -285,7 +285,7 @@ slice(arguments); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/function/index.html b/files/zh-tw/web/javascript/reference/global_objects/function/index.html index aaed1afc5c..c7321e3bd8 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/function/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/function/index.html @@ -130,7 +130,7 @@ console.log(f2()); // 20 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -153,7 +153,7 @@ console.log(f2()); // 20 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/function/length/index.html b/files/zh-tw/web/javascript/reference/global_objects/function/length/index.html index 699e1ff178..f1498d4e5d 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/function/length/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/function/length/index.html @@ -72,7 +72,7 @@ console.log((function(a, b = 1, c) {}).length); /* 1 */ <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -103,7 +103,7 @@ console.log((function(a, b = 1, c) {}).length); /* 1 */ </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/json/parse/index.html b/files/zh-tw/web/javascript/reference/global_objects/json/parse/index.html index a33e2310c3..663d5fb6ce 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/json/parse/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/json/parse/index.html @@ -106,7 +106,7 @@ JSON.parse('{"foo" : 1, }'); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -129,7 +129,7 @@ JSON.parse('{"foo" : 1, }'); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/json/stringify/index.html b/files/zh-tw/web/javascript/reference/global_objects/json/stringify/index.html index 5169d7d748..fdc8f8d1d0 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/json/stringify/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/json/stringify/index.html @@ -76,7 +76,7 @@ JSON.stringify( Object.create(null, { x: { value: 'x', enumerable: false }, y: { </pre> -<h3 id="The_replacer_parameter"><a id="The replacer parameter" name="The replacer parameter"></a>The <code>replacer</code> parameter</h3> +<h3 id="The_replacer_parameter"><a name="The replacer parameter"></a>The <code>replacer</code> parameter</h3> <p>The <code>replacer</code> parameter can be either a function or an array. As a function, it takes two parameters, the key and the value being stringified. The object in which the key was found is provided as the replacer's <code>this</code> parameter. Initially it gets called with an empty key representing the object being stringified, and it then gets called for each property on the object or array being stringified. It should return the value that should be added to the JSON string, as follows:</p> @@ -113,7 +113,7 @@ JSON.stringify(foo, replacer); // '{"week":45,"month":7}', only keep "week" and "month" properties </pre> -<h3 id="The_space_argument"><a id="The space argument" name="The space argument"></a>The <code>space</code> argument</h3> +<h3 id="The_space_argument"><a name="The space argument"></a>The <code>space</code> argument</h3> <p>The <code>space</code> argument may be used to control spacing in the final string. If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will be indented by this string (or the first ten characters of it).</p> diff --git a/files/zh-tw/web/javascript/reference/global_objects/math/round/index.html b/files/zh-tw/web/javascript/reference/global_objects/math/round/index.html index 5e6a0ea694..efde660a66 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/math/round/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/math/round/index.html @@ -155,7 +155,7 @@ Math.ceil10(-59, 1); // -50 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -178,7 +178,7 @@ Math.ceil10(-59, 1); // -50 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/null/index.html b/files/zh-tw/web/javascript/reference/global_objects/null/index.html index 2cee8a369e..a32debbd16 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/null/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/null/index.html @@ -68,7 +68,7 @@ null == undefined // true <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -91,7 +91,7 @@ null == undefined // true </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/number/index.html b/files/zh-tw/web/javascript/reference/global_objects/number/index.html index 8a023d1603..6aad23d489 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/number/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/number/index.html @@ -163,7 +163,7 @@ Number("100a") // NaN <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -186,7 +186,7 @@ Number("100a") // NaN </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/number/toexponential/index.html b/files/zh-tw/web/javascript/reference/global_objects/number/toexponential/index.html index 34ae1e4139..9c40c2fe5b 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/number/toexponential/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/number/toexponential/index.html @@ -107,7 +107,7 @@ console.log(77 .toExponential()); // logs 7.7e+1 <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -130,7 +130,7 @@ console.log(77 .toExponential()); // logs 7.7e+1 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/object/assign/index.html b/files/zh-tw/web/javascript/reference/global_objects/object/assign/index.html index 65330a6196..a95240343f 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/object/assign/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/object/assign/index.html @@ -239,7 +239,7 @@ console.log(copy); <div>{{Compat("javascript.builtins.Object.assign")}}</div> -<div id="compat-desktop"></div> +<div></div> <h2 id="參閱">參閱</h2> diff --git a/files/zh-tw/web/javascript/reference/global_objects/object/create/index.html b/files/zh-tw/web/javascript/reference/global_objects/object/create/index.html index f158d36977..f8e71aeae1 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/object/create/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/object/create/index.html @@ -200,7 +200,7 @@ o2 = Object.create({}, { <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -223,7 +223,7 @@ o2 = Object.create({}, { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/object/defineproperties/index.html b/files/zh-tw/web/javascript/reference/global_objects/object/defineproperties/index.html index fc87ca0317..23eb95a642 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/object/defineproperties/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/object/defineproperties/index.html @@ -169,7 +169,7 @@ Object.defineProperties(obj, { <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -192,7 +192,7 @@ Object.defineProperties(obj, { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/object/getprototypeof/index.html b/files/zh-tw/web/javascript/reference/global_objects/object/getprototypeof/index.html index ff4e4d480f..b063094f52 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/object/getprototypeof/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/object/getprototypeof/index.html @@ -65,7 +65,7 @@ Object.getPrototypeOf("foo"); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -88,7 +88,7 @@ Object.getPrototypeOf("foo"); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/object/hasownproperty/index.html b/files/zh-tw/web/javascript/reference/global_objects/object/hasownproperty/index.html index 1786387141..58fe485c22 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/object/hasownproperty/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/object/hasownproperty/index.html @@ -125,7 +125,7 @@ Object.prototype.hasOwnProperty.call(foo, 'bar'); // true <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -148,7 +148,7 @@ Object.prototype.hasOwnProperty.call(foo, 'bar'); // true </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/object/index.html b/files/zh-tw/web/javascript/reference/global_objects/object/index.html index cf55c9b004..40468bd608 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/object/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/object/index.html @@ -167,7 +167,7 @@ var o = new Object(Boolean()); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -190,7 +190,7 @@ var o = new Object(Boolean()); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/object/keys/index.html b/files/zh-tw/web/javascript/reference/global_objects/object/keys/index.html index 958b9a3a47..5bf8e8a559 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/object/keys/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/object/keys/index.html @@ -148,7 +148,7 @@ if (!Object.keys) { <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -171,7 +171,7 @@ if (!Object.keys) { </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/object/preventextensions/index.html b/files/zh-tw/web/javascript/reference/global_objects/object/preventextensions/index.html index bc046cf87b..da1dc83526 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/object/preventextensions/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/object/preventextensions/index.html @@ -102,7 +102,7 @@ Object.preventExtensions(1); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -133,7 +133,7 @@ Object.preventExtensions(1); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/reflect/index.html b/files/zh-tw/web/javascript/reference/global_objects/reflect/index.html index 4f1d980a0d..03cd63effc 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/reflect/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/reflect/index.html @@ -70,7 +70,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Reflect <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -95,7 +95,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Reflect </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/global_objects/string/padstart/index.html b/files/zh-tw/web/javascript/reference/global_objects/string/padstart/index.html index 8a08d5924f..bb053cd10a 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/string/padstart/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/string/padstart/index.html @@ -39,7 +39,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/padStart <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -64,7 +64,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/padStart </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/operators/await/index.html b/files/zh-tw/web/javascript/reference/operators/await/index.html index 2b79ef4f9f..dd1121503f 100644 --- a/files/zh-tw/web/javascript/reference/operators/await/index.html +++ b/files/zh-tw/web/javascript/reference/operators/await/index.html @@ -91,7 +91,7 @@ f3();</pre> <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -116,7 +116,7 @@ f3();</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/operators/comma_operator/index.html b/files/zh-tw/web/javascript/reference/operators/comma_operator/index.html index 3324cb156b..e1c45ea5b0 100644 --- a/files/zh-tw/web/javascript/reference/operators/comma_operator/index.html +++ b/files/zh-tw/web/javascript/reference/operators/comma_operator/index.html @@ -90,7 +90,7 @@ console.log(x); // 6 (right-most) <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -113,7 +113,7 @@ console.log(x); // 6 (right-most) </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/operators/object_initializer/index.html b/files/zh-tw/web/javascript/reference/operators/object_initializer/index.html index c8e4308f32..5ce80cd8e8 100644 --- a/files/zh-tw/web/javascript/reference/operators/object_initializer/index.html +++ b/files/zh-tw/web/javascript/reference/operators/object_initializer/index.html @@ -287,7 +287,7 @@ assert(obj3.__proto__ === 17); <div>{{CompatibilityTable}}</div> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -348,7 +348,7 @@ assert(obj3.__proto__ === 17); </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/statements/for...in/index.html b/files/zh-tw/web/javascript/reference/statements/for...in/index.html index 8877c28d79..2c903faf2e 100644 --- a/files/zh-tw/web/javascript/reference/statements/for...in/index.html +++ b/files/zh-tw/web/javascript/reference/statements/for...in/index.html @@ -47,11 +47,11 @@ translation_of: Web/JavaScript/Reference/Statements/for...in <p>A <code>for...in</code> loop iterates over the properties of an object in an arbitrary order (see the <a href="/en-US/docs/JavaScript/Reference/Operators/delete#Cross-browser_issues">delete operator</a> for more on why one cannot depend on the seeming orderliness of iteration, at least in a cross-browser setting). If a property is modified in one iteration and then visited at a later time, its value in the loop is its value at that later time. A property that is deleted before it has been visited will not be visited later. Properties added to the object over which iteration is occurring may either be visited or omitted from iteration. In general it is best not to add, modify or remove properties from the object during iteration, other than the property currently being visited. There is no guarantee whether or not an added property will be visited, whether a modified property (other than the current one) will be visited before or after it is modified, or whether a deleted property will be visited before it is deleted.</p> -<div class="note" id="hasOwnPropertyNote"> +<div class="note"> <p>If you only want to consider properties attached to the object itself, and not its prototypes, use <a href="/en-US/docs/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames">getOwnPropertyNames</a> or perform a <a href="/en-US/docs/JavaScript/Reference/Global_Objects/Object/hasOwnProperty">hasOwnProperty</a> check (<a href="/en-US/docs/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable">propertyIsEnumerable</a> can also be used). Alternatively, if you know there won't be any outside code interference, you can extend built-in prototypes with a check method.</p> </div> -<div class="note" id="arrayNote"> +<div class="note"> <p><strong><code>for..in</code> 不應該用來迭代一個索引順序很重要的<a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array">陣列</a>。</strong> 陣列索引只是以整數命名的可列舉屬性,其他方面等同於一般物件屬性。 無法擔保 <code>for...in</code> 以特定順序傳回索引,並且它將傳回全部可列舉屬性,包括非整數名的,以及繼承而來的可列舉屬性。</p> <p>因為迭代的順序依賴於 JavaScript 引擎的實作,在不同引擎下,迭代一個陣列可能不是以一個一致的順序存取陣列元素。因此,當你迭代陣列,且該陣列的存取順序很重要時,最好是使用以數值索引的 <a href="/en-US/docs/JavaScript/Reference/Statements/for">for</a> 迴圈 (或 <a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array/forEach">Array.forEach</a> 或非標準 <code><a href="/en-US/docs/JavaScript/Reference/Statements/for...of">for...of</a></code> 迴圈)。</p> diff --git a/files/zh-tw/web/javascript/reference/statements/throw/index.html b/files/zh-tw/web/javascript/reference/statements/throw/index.html index dbfe664ef5..9994f8c58c 100644 --- a/files/zh-tw/web/javascript/reference/statements/throw/index.html +++ b/files/zh-tw/web/javascript/reference/statements/throw/index.html @@ -179,7 +179,7 @@ e = verifyZipCode('95060 1234'); // returns 95060 1234 <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -202,7 +202,7 @@ e = verifyZipCode('95060 1234'); // returns 95060 1234 </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> diff --git a/files/zh-tw/web/javascript/reference/statements/var/index.html b/files/zh-tw/web/javascript/reference/statements/var/index.html index 705a27a333..1a085c5bd9 100644 --- a/files/zh-tw/web/javascript/reference/statements/var/index.html +++ b/files/zh-tw/web/javascript/reference/statements/var/index.html @@ -192,7 +192,7 @@ console.log(typeof y); // undefined as y is local to function a</pre> <p>{{CompatibilityTable}}</p> -<div id="compat-desktop"> +<div> <table class="compat-table"> <tbody> <tr> @@ -215,7 +215,7 @@ console.log(typeof y); // undefined as y is local to function a</pre> </table> </div> -<div id="compat-mobile"> +<div> <table class="compat-table"> <tbody> <tr> |