diff options
Diffstat (limited to 'files/zh-cn/web/javascript')
75 files changed, 3 insertions, 277 deletions
diff --git a/files/zh-cn/web/javascript/guide/regular_expressions/character_classes/index.html b/files/zh-cn/web/javascript/guide/regular_expressions/character_classes/index.html index 80f9181f89..84bf4e0090 100644 --- a/files/zh-cn/web/javascript/guide/regular_expressions/character_classes/index.html +++ b/files/zh-cn/web/javascript/guide/regular_expressions/character_classes/index.html @@ -13,8 +13,6 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions/Character_Classes <h2 id="类型">类型</h2> -<div class="hidden">The following table is also duplicated on <a href="/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Cheatsheet">this cheatsheet</a>. Do not forget to edit it as well, thanks!</div> - <table class="standard-table"> <thead> <tr> @@ -179,10 +177,6 @@ console.table(nonEnglishText.match(regexpBMPWord)); [ 'Приключения', 'Алисы', 'в', 'Стране', 'чудес' ] </pre> -<div class="hidden"> -<p>Note for MDN editors: please do not try to add funny examples with emoji as those characters are not handled by the platform (Kuma).</p> -</div> - <h2 id="Specifications">Specifications</h2> <table class="standard-table"> diff --git a/files/zh-cn/web/javascript/guide/regular_expressions/groups_and_ranges/index.html b/files/zh-cn/web/javascript/guide/regular_expressions/groups_and_ranges/index.html index 8aac5048dc..ac6334b3df 100644 --- a/files/zh-cn/web/javascript/guide/regular_expressions/groups_and_ranges/index.html +++ b/files/zh-cn/web/javascript/guide/regular_expressions/groups_and_ranges/index.html @@ -11,8 +11,6 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions/Groups_and_Ranges <h2 id="类型">类型</h2> -<div class="hidden">The following section is also duplicated on <a href="/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Cheatsheet">this cheatsheet</a>. Do not forget to edit it as well, thanks!</div> - <table class="standard-table"> <thead> <tr> diff --git a/files/zh-cn/web/javascript/guide/regular_expressions/quantifiers/index.html b/files/zh-cn/web/javascript/guide/regular_expressions/quantifiers/index.html index 1173553f2d..4f1bd7ba80 100644 --- a/files/zh-cn/web/javascript/guide/regular_expressions/quantifiers/index.html +++ b/files/zh-cn/web/javascript/guide/regular_expressions/quantifiers/index.html @@ -12,8 +12,6 @@ original_slug: Web/JavaScript/Guide/Regular_Expressions/量词 <h2 id="类型">类型</h2> -<div class="hidden">The following table is also duplicated on <a href="/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Cheatsheet">this cheatsheet</a>. Do not forget to edit it as well, thanks!</div> - <table class="standard-table"> <thead> <tr> diff --git a/files/zh-cn/web/javascript/guide/regular_expressions/unicode_property_escapes/index.html b/files/zh-cn/web/javascript/guide/regular_expressions/unicode_property_escapes/index.html index 973820343c..cf8a7207b6 100644 --- a/files/zh-cn/web/javascript/guide/regular_expressions/unicode_property_escapes/index.html +++ b/files/zh-cn/web/javascript/guide/regular_expressions/unicode_property_escapes/index.html @@ -19,8 +19,6 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions/Unicode_Property_Escape <h2 id="句法">句法</h2> -<div class="hidden">The following section is also duplicated on <a href="/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Cheatsheet">this cheatsheet</a>. Do not forget to edit it as well, thanks!</div> - <pre class="brush: js">// Non-binary 属性 \p{<em>Unicode属性值</em>} \p{<em>Unicode属性名</em>=<em>Unicode属性值</em>} diff --git a/files/zh-cn/web/javascript/reference/classes/public_class_fields/index.html b/files/zh-cn/web/javascript/reference/classes/public_class_fields/index.html index 45e9286ef6..64ce546ea0 100644 --- a/files/zh-cn/web/javascript/reference/classes/public_class_fields/index.html +++ b/files/zh-cn/web/javascript/reference/classes/public_class_fields/index.html @@ -142,10 +142,6 @@ console.log(sub.subInstanceField); <p>{{EmbedInteractiveExample("pages/js/classes-static.html")}}</p> -<div class="hidden"> -<p>这些交互案例的资源储存在GitHub仓库中。如果你想参与这个项目,请复制链接<a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a>并向我们发送拉取(pull)请求。</p> -</div> - <p>静态方法是在类的赋值阶段用<a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty">Object.defineProperty</a>方法添加到类中的。静态方法是可编辑的、不可遍历的和可配置的。</p> <h3 id="公共实例方法">公共实例方法</h3> diff --git a/files/zh-cn/web/javascript/reference/functions/arguments/index.html b/files/zh-cn/web/javascript/reference/functions/arguments/index.html index 8aff3819bd..501794e7f3 100644 --- a/files/zh-cn/web/javascript/reference/functions/arguments/index.html +++ b/files/zh-cn/web/javascript/reference/functions/arguments/index.html @@ -19,10 +19,6 @@ translation_of: Web/JavaScript/Reference/Functions/arguments <p>{{EmbedInteractiveExample("pages/js/functions-arguments.html")}}</p> -<div class="hidden"> -<p>The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p> -</div> - <h2 id="Description" name="Description">描述</h2> <div class="blockIndicator note"> @@ -98,9 +94,6 @@ var args = [...arguments];</pre> <dt><code><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/arguments/callee" title="JavaScript/Reference/Functions_and_function_scope/arguments/callee">arguments.callee</a></code></dt> <dd>指向参数所属的当前执行的函数。</dd> <dt> - <div class="hidden"> - <p><code><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions/arguments/caller" title="JavaScript/Reference/Functions_and_function_scope/arguments/caller">arguments.caller</a></code> {{ Obsolete_inline() }}</p> - </div> </dt> <dd> <p>指向调用当前函数的函数。</p> diff --git a/files/zh-cn/web/javascript/reference/functions/method_definitions/index.html b/files/zh-cn/web/javascript/reference/functions/method_definitions/index.html index 372c50c880..ced585a822 100644 --- a/files/zh-cn/web/javascript/reference/functions/method_definitions/index.html +++ b/files/zh-cn/web/javascript/reference/functions/method_definitions/index.html @@ -15,8 +15,6 @@ translation_of: Web/JavaScript/Reference/Functions/Method_definitions <div>{{EmbedInteractiveExample("pages/js/functions-definitions.html")}}</div> -<p class="hidden">这个交互式例子的源代码位于 GitHub 仓库中。如果你想对这个交互式的样例做出一些贡献,请克隆 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> 然后提一个 pull request 给我们。</p> - <h2 id="语法">语法</h2> <pre class="syntaxbox">var obj = { diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/flatmap/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/flatmap/index.html index 8383d4be6a..d0c4cfc9b5 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/flatmap/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/flatmap/index.html @@ -13,9 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/flatMap <p><code><strong>flatMap()</strong></code> 方法首先使用映射函数映射每个元素,然后将结果压缩成一个新数组。它与 <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map">map</a> 连着深度值为1的 <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat">flat</a> 几乎相同,但 <code>flatMap</code> 通常在合并成一种方法的效率稍微高一些。</p> -<p class="hidden">\{{EmbedInteractiveExample("pages/js/array-flatmap.html")}}</p> - -<p class="hidden">此交互式示例的源代码存储在GitHub存储库中。如果您想要为交互式示例项目做出贡献,请复制https://github.com/mdn/interactive-examples,并向我们发送 pull request。</p> +<p>\{{EmbedInteractiveExample("pages/js/array-flatmap.html")}}</p> <h2 id="语法">语法</h2> @@ -110,10 +108,6 @@ arr.reduce((acc, x) => acc.concat([x, x * 2]), []); <p>请注意,这是低效的,并且应该避免大型阵列:在每次迭代中,它创建一个必须被垃圾收集的新临时数组,并且它将元素从当前的累加器数组复制到一个新的数组中,而不是将新的元素添加到现有的数组中。</p> -<div class="hidden"> -<p>Please do not add polyfills on this article. For reference, please check: <a href="https://discourse.mozilla.org/t/mdn-rfc-001-mdn-wiki-pages-shouldnt-be-a-distributor-of-polyfills/24500">https://discourse.mozilla.org/t/mdn-rfc-001-mdn-wiki-pages-shouldnt-be-a-distributor-of-polyfills/24500</a></p> -</div> - <h2 id="规范">规范</h2> <table class="standard-table"> diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html index cc217e28af..c362c85c77 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html @@ -17,10 +17,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/Reduce <div>{{EmbedInteractiveExample("pages/js/array-reduce.html")}}</div> -<div class="hidden"> -<p>The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request. </p> -</div> - <div> <p><strong>reducer</strong> 函数接收4个参数:</p> diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/shift/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/shift/index.html index 3675c12bc4..834f64aa96 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/shift/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/shift/index.html @@ -15,8 +15,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/shift <div>{{EmbedInteractiveExample("pages/js/array-shift.html")}}</div> -<p class="hidden">这份交互测试源码存储在Github仓库中。如果你想为这份交互测试源码做贡献, 请克隆 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> 同时提交一个pull request.</p> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><code><var>arr</var>.shift()</code></pre> diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html index b69293d1db..0aa5dc1186 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html @@ -16,8 +16,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/slice <div>{{EmbedInteractiveExample("pages/js/array-slice.html")}}</div> -<p class="hidden">The source for this interactive demo is stored in a GitHub repository. If you'd like to contribute to the interactive demo project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><var>arr</var>.slice([<var>begin</var>[, <var>end</var>]])</pre> diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html index b2bb7374dd..6d660999b6 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html @@ -16,8 +16,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/splice <div>{{EmbedInteractiveExample("pages/js/array-splice.html")}}</div> -<p class="hidden">交互范例的源码储存于 GitHub 仓库。想要参与此项目,可 clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> 并发送 pull request 给我们。</p> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><var>array</var>.splice(<var>start[</var>, <var>deleteCount[</var>, <var>item1[</var>, <var>item2[</var>, <em>...]]]]</em>) diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html index d8cc03f53f..92e3920d88 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html @@ -84,8 +84,6 @@ iterator.next().value; // "n" <p>如果数组中元素改变,那么迭代器的值也会改变</p> </div> -<p class="hidden"><strong>TODO</strong>: please write about why we need it, use cases.</p> - <h2 id="规范">规范</h2> <table class="standard-table"> diff --git a/files/zh-cn/web/javascript/reference/global_objects/dataview/getbiguint64/index.html b/files/zh-cn/web/javascript/reference/global_objects/dataview/getbiguint64/index.html index d418df1366..08df757588 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/dataview/getbiguint64/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/dataview/getbiguint64/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getBigUint64 <div>{{EmbedInteractiveExample("pages/js/dataview-getbiguint64.html")}}</div> -<p class="hidden">上述交互例程存储在github仓库中. 如果你想贡献这段交互代码, 请克隆<a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> ,然后给我们提交一个pull request.</p> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><var>dataview</var>.getBigUint64(byteOffset [, littleEndian])</pre> diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.html index 9646b069da..68a8d136e7 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.html @@ -167,10 +167,6 @@ Date.parse('foo-bar 2014'); <p> </p> -<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> - <p>{{Compat("javascript.builtins.Date.parse")}}</p> <h2 id="See_also" name="See_also">兼容性提示</h2> 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 f629d4ec9b..f45613cee2 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 @@ -16,10 +16,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/decodeURI <p>{{EmbedInteractiveExample("pages/js/globalprops-decodeuri.html")}}</p> -<div class="hidden"> -<p>The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p> -</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><code>decodeURI(<em>encodedURI</em>)</code></pre> @@ -106,11 +102,3 @@ translation_of: Web/JavaScript/Reference/Global_Objects/decodeURI <li>{{jsxref("encodeURI")}}</li> <li>{{jsxref("encodeURIComponent")}}</li> </ul> - -<p> - <audio class="hidden"></audio> -</p> - -<p> - <audio class="hidden"></audio> -</p> 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 ebe7d639ed..7db77bdbf1 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 @@ -144,7 +144,3 @@ translation_of: Web/JavaScript/Reference/Global_Objects/decodeURIComponent <li>{{jsxref("encodeURI")}}</li> <li>{{jsxref("encodeURIComponent")}}</li> </ul> - -<p> - <audio class="hidden"> </audio> -</p> diff --git a/files/zh-cn/web/javascript/reference/global_objects/eval/index.html b/files/zh-cn/web/javascript/reference/global_objects/eval/index.html index dc2e4f95a6..9e2ecdfcef 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/eval/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/eval/index.html @@ -13,8 +13,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/eval <div>{{EmbedInteractiveExample("pages/js/globalprops-eval.html")}}</div> -<p class="hidden">此交互式示例的源存储在GitHub存储库中。 如果您想参与交互式示例项目,请克隆https://github.com/mdn/interactive-examples并向我们发送拉取请求。</p> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><code>eval(<em>string</em>)</code></pre> diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/name/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/name/index.html index 80253d1caa..61f96599b8 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/function/name/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/function/name/index.html @@ -60,10 +60,6 @@ try { object_someMethod } catch(e) { alert(e); } <p>你不能更改函数的名称,此属性是只读的:</p> -<div class="hidden"> -<p>Example below contradicts with what is said at the beginning of this section and doesn't work as described.</p> -</div> - <pre class="brush: js">var object = { // anonymous someMethod: function() {} 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 1f446b3247..874f0cdbf7 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 @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat <div>{{EmbedInteractiveExample("pages/js/intl-datetimeformat.html")}}</div> -<p class="hidden">交互示例的源代码存储在 GitHub 资源库。如果你愿意分布交互示例,请复制<a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a>,并向我们发送一个pull请求。</p> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><code>new Intl.DateTimeFormat([<var>locales</var>[, <var>options</var>]]) diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/relativetimeformat/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/relativetimeformat/index.html index a05c3385dd..d8206fe263 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/intl/relativetimeformat/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/intl/relativetimeformat/index.html @@ -10,8 +10,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat <div>{{EmbedInteractiveExample("pages/js/intl-relativetimeformat.html")}}</div> -<p class="hidden">此交互式示例的源存储在GitHub存储库中。如果您想参与交互式示例项目,请克隆<a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a>并向我们发送拉取请求。</p> - <h2 id="句法">句法</h2> <pre><code>new Intl.RelativeTimeFormat([<var>locales</var>[, <var>options</var>]]) diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/index.html index 3064bc3893..ae08c53771 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/index.html @@ -127,40 +127,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math <dd>返回一个数的整数部分,直接去除其小数点及之后的部分。</dd> </dl> -<div class="hidden"> -<div class="note"> -<p>已被移除的内容:</p> -</div> - -<h2 id="拓展_Math_对象">拓展 <code>Math</code> 对象</h2> - -<p>As with most of the built-in objects in JavaScript, the <code>Math</code> object can be extended with custom properties and methods. To extend the <code>Math</code> object, you do not use <code>prototype</code>. Instead, you directly extend <code>Math</code>:</p> - -<pre>Math.propName = propValue; -Math.methodName = methodRef;</pre> - -<p>For instance, the following example adds a method to the <code>Math</code> object for calculating the <em>greatest common divisor</em> of a list of arguments.</p> - -<pre class="brush: js">/* Variadic function -- Returns the greatest common divisor of a list of arguments */ -Math.gcd = function() { - if (arguments.length == 2) { - if (arguments[1] == 0) - return arguments[0]; - else - return Math.gcd(arguments[1], arguments[0] % arguments[1]); - } else if (arguments.length > 2) { - var result = Math.gcd(arguments[0], arguments[1]); - for (var i = 2; i < arguments.length; i++) - result = Math.gcd(result, arguments[i]); - return result; - } -};</pre> - -<p>试试运行下面的代码:</p> - -<pre class="brush: js">console.log(Math.gcd(20, 30, 15, 70, 40)); // `5`</pre> -</div> - <h2 id="规范">规范</h2> <table class="standard-table"> 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 7400ad4ee2..d53c952ea3 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 @@ -178,10 +178,6 @@ Number('-Infinity') //-Infinity</pre> <h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2> <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> - <p>{{Compat("javascript.builtins.Number")}}</p> </div> diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/create/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/create/index.html index 671c542a48..255cd9ec0c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/create/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/create/index.html @@ -16,8 +16,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/create <div>{{EmbedInteractiveExample("pages/js/object-create.html", "taller")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="Syntax" name="Syntax">语法</h2> <pre>Object.create(<var>proto,[</var><var>propertiesObject</var>])</pre> 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 729aee8834..4f2def476a 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 @@ -16,10 +16,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/parseInt <p>{{EmbedInteractiveExample("pages/js/globalprops-parseint.html")}}</p> -<div class="hidden"> -<p>此交互式示例的代码存储在GitHub仓库中。如果你想参与交互式示例项目, 请克隆 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> 之后给我们发一个pull请求。</p> -</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox">parseInt(<em>string</em>, <em>radix</em>);</pre> diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/all/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/all/index.html index 113760c25d..6ba1063df7 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/promise/all/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/promise/all/index.html @@ -17,8 +17,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/all <div>{{EmbedInteractiveExample("pages/js/promise-all.html")}}</div> -<p class="hidden">The source for this interactive demo is stored in a GitHub repository. If you'd like to contribute to the interactive demo project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><var>Promise.all(iterable)</var>;</pre> 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 418851f99a..5a5fd2d613 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 @@ -196,7 +196,7 @@ myFirstPromise.then(function(successMessage){ <h3 id="高级示例">高级示例</h3> -<pre class="brush: html hidden"><button id="btn">Make a promise!</button> +<pre class="brush: html"><button id="btn">Make a promise!</button> <div id="log"></div> </pre> @@ -247,7 +247,7 @@ function testPromise() { ') Promise made (<small>同步代码结束</small>)<br/>'); }</pre> -<pre class="brush:js hidden">if ("Promise" in window) { +<pre class="brush:js">if ("Promise" in window) { let btn = document.getElementById("btn"); btn.addEventListener("click",testPromise); } else { diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/promise/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/promise/index.html index 4af6e48f93..1f4a6d5762 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/promise/promise/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/promise/promise/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/Promise <div>{{EmbedInteractiveExample("pages/js/promise-constructor.html")}}</div> -<p class="hidden">交互式的demo的源码在GitHub仓库,如果你乐于为交互式的demo做贡献,请克隆<a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a>并提交pull request .</p> - <h2 id="语法">语法</h2> <pre class="syntaxbox">new Promise(<var>executor</var>)</pre> diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/race/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/race/index.html index 569f7d9d50..674d97f5e1 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/promise/race/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/promise/race/index.html @@ -11,8 +11,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/race <div>{{EmbedInteractiveExample("pages/js/promise-race.html")}}</div> -<p class="hidden">The source for this interactive demo is stored in a GitHub repository. If you'd like to contribute to the interactive demo project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p> - <h2 id="Syntax" name="Syntax">语法</h2> <pre class="syntaxbox"><var>Promise.race(iterable)</var>;</pre> diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html index ee41e7d824..e25c58139a 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html @@ -31,8 +31,6 @@ Promise.resolve(thenable) //这会造成一个死循环 <div>{{EmbedInteractiveExample("pages/js/promise-resolve.html")}}</div> -<p class="hidden">The source for this interactive demo is stored in a GitHub repository. If you'd like to contribute to the interactive demo project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p> - <h2 id="Syntax" name="Syntax">语法</h2> <pre class="syntaxbox"><var>Promise.resolve(value)</var>; diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html index d5193c8498..6717a21da3 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html @@ -15,8 +15,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/then <div>{{EmbedInteractiveExample("pages/js/promise-then.html")}}</div> -<p class="hidden">The source for this interactive demo is stored in a GitHub repository. If you'd like to contribute to the interactive demo project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p> - <div class="note"> <p>注意:如果忽略针对某个状态的回调函数参数,或者提供非函数 (nonfunction) 参数,那么 <code>then</code> 方法将会丢失关于该状态的回调函数信息,但是并不会产生错误。如果调用 <code>then</code> 的 <code>Promise</code> 的状态(fulfillment 或 rejection)发生改变,但是 <code>then</code> 中并没有关于这种状态的回调函数,那么 <code>then</code> 将创建一个没有经过回调函数处理的新 <code>Promise</code> 对象,这个新 <code>Promise</code> 只是简单地接受调用这个 <code>then</code> 的原 <code>Promise</code> 的终态作为它的终态。</p> </div> diff --git a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/apply/index.html b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/apply/index.html index 7c41b6121e..6dbaa77b5c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/apply/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/proxy/proxy/apply/index.html @@ -15,8 +15,6 @@ original_slug: Web/JavaScript/Reference/Global_Objects/Proxy/handler/apply <div>{{EmbedInteractiveExample("pages/js/proxyhandler-apply.html", "taller")}}</div> -<p class="hidden">此交互式示例的源代码存储在GitHub存储库中。 如果您想为交互式示例项目做出贡献,请克隆 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> 并向我们发起拉取请求</p> - <h2 id="语法">语法</h2> <pre class="brush: js">var p = new Proxy(target, { diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/test/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/test/index.html index d1f4ed7183..8bd8126956 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/test/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/test/index.html @@ -15,8 +15,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/test <div>{{EmbedInteractiveExample("pages/js/regexp-prototype-test.html", "taller")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="Syntax" name="Syntax">语法</h2> <pre><var>regexObj</var>.test(str)</pre> diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/index.html index 682edbc181..df4e5fbf4c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/set/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/set/index.html @@ -263,7 +263,3 @@ new Set("firefox") // Set(6) [ "f", "i", "r", "e", "o", "x" ] <li>{{ jsxref('WeakMap') }}</li> <li>{{ jsxref('WeakSet') }}</li> </ul> - -<p> - <audio class="hidden"></audio> -</p> diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/size/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/size/index.html index 80df85291e..9ff986da31 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/set/size/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/set/size/index.html @@ -14,10 +14,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/size <p>{{EmbedInteractiveExample("pages/js/set-prototype-size.html")}}</p> -<div class="hidden"> -<p>The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p> -</div> - <h2 id="描述">描述</h2> <p><code>size</code>的值是一个整数,表示<code>Set</code>对象有多少条目。<code>size</code>的集合访问函数是<code>undefined</code>; 你不能改变这个属性。</p> diff --git a/files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer/index.html b/files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer/index.html index c6eb9cc2d2..426f293f00 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer/index.html @@ -24,10 +24,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer <p>{{EmbedInteractiveExample("pages/js/sharedarraybuffer-constructor.html")}}</p> -<div class="hidden"> -<p>The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p> -</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox">new SharedArrayBuffer(length) 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 d93b8bebef..33a3a57880 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 @@ -10,8 +10,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/match <div>{{EmbedInteractiveExample("pages/js/string-match.html", "shorter")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="Syntax" name="Syntax">语法</h2> <pre class="syntaxbox"><code><em>str</em>.match(regexp)</code></pre> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/padend/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/padend/index.html index e73b847c5b..c66bc9d861 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/padend/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/padend/index.html @@ -14,8 +14,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/padEnd <div>{{EmbedInteractiveExample("pages/js/string-padend.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><var>str</var>.padEnd(<var>targetLength</var> [, <var>padString</var>])</pre> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/padstart/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/padstart/index.html index 69aff06b94..98d0f201ed 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/padstart/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/padstart/index.html @@ -16,8 +16,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/padStart <div>{{EmbedInteractiveExample("pages/js/string-padstart.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><var>str</var>.padStart(<var>targetLength</var> [, <var>padString</var>])</pre> diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/touppercase/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/touppercase/index.html index 820f1a80b3..a62e0e137c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/touppercase/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/touppercase/index.html @@ -15,8 +15,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toUpperCase <div>{{EmbedInteractiveExample("pages/js/string-touppercase.html","shorter")}}</div> -<p class="hidden">这个交互式示例的源代码存储在GitHub存储库中。如果您想对交互式示例项目作出贡献,请克隆<a href="/zh-CN/docs/">https://github.com/mdn/interactive-examples</a>并向我们发送请求。</p> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><var>str</var>.toUpperCase()</pre> diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/hasinstance/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/hasinstance/index.html index c4d2d0753a..95b8c11f59 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/symbol/hasinstance/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/hasinstance/index.html @@ -10,9 +10,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Symbol/hasInstance <div> <div>{{EmbedInteractiveExample("pages/js/symbol-hasinstance.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> -</div> - <div>{{js_property_attributes(0,0,0)}}</div> <h2 id="示例">示例</h2> 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 eefbc9d547..220716da29 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 @@ -11,8 +11,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Symbol/split <div>{{EmbedInteractiveExample("pages/js/symbol-split.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <div>{{js_property_attributes(0,0,0)}}</div> <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/javascript/reference/global_objects/typedarray/index.html b/files/zh-cn/web/javascript/reference/global_objects/typedarray/index.html index 912d45dea4..212f2cc483 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/typedarray/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/typedarray/index.html @@ -293,15 +293,3 @@ for (var k in typedArrayTypes) <li>{{jsxref("ArrayBuffer")}}</li> <li>{{jsxref("DataView")}}</li> </ul> - -<p> - <audio class="hidden"></audio> -</p> - -<p> - <audio class="hidden"></audio> -</p> - -<p> - <audio class="hidden"></audio> -</p> diff --git a/files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html b/files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html index de15cec004..f7492e2b40 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html @@ -44,15 +44,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance <dt></dt> </dl> -<div class="hidden"> -<dl> - <dt></dt> - <dt> - <p>译者注:英文版的变动有点大,用例模块暂时不翻译,后来者有心的话可以翻译一下。</p> - </dt> -</dl> -</div> - <h2 id="规格">规格</h2> <table class="standard-table"> diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_and/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_and/index.html index c857ac2b41..017d0d464c 100644 --- a/files/zh-cn/web/javascript/reference/operators/bitwise_and/index.html +++ b/files/zh-cn/web/javascript/reference/operators/bitwise_and/index.html @@ -10,8 +10,6 @@ original_slug: Web/JavaScript/Reference/Operators/按位与 <div>{{EmbedInteractiveExample("pages/js/expressions-bitwise-and.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><code><var>a</var> & <var>b</var></code> diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_or/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_or/index.html index 245da8fdab..2f83d5d956 100644 --- a/files/zh-cn/web/javascript/reference/operators/bitwise_or/index.html +++ b/files/zh-cn/web/javascript/reference/operators/bitwise_or/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Bitwise_OR <div>{{EmbedInteractiveExample("pages/js/expressions-bitwise-or.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><code><var>a</var> | <var>b</var></code> diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_or_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_or_assignment/index.html index fad4f94082..c8e2692723 100644 --- a/files/zh-cn/web/javascript/reference/operators/bitwise_or_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/bitwise_or_assignment/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Bitwise_OR_assignment <div>{{EmbedInteractiveExample("pages/js/expressions-bitwise-or-assignment.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><strong>Operator:</strong> x |= y diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_xor/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_xor/index.html index e68e1d436b..1ec5d48f0a 100644 --- a/files/zh-cn/web/javascript/reference/operators/bitwise_xor/index.html +++ b/files/zh-cn/web/javascript/reference/operators/bitwise_xor/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Bitwise_XOR <div>{{EmbedInteractiveExample("pages/js/expressions-bitwise-xor.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><code><var>a</var> ^ <var>b</var></code> diff --git a/files/zh-cn/web/javascript/reference/operators/division_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/division_assignment/index.html index a9d3508d00..167f41d33f 100644 --- a/files/zh-cn/web/javascript/reference/operators/division_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/division_assignment/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Division_assignment <div>{{EmbedInteractiveExample("pages/js/expressions-division-assignment.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><strong>Operator:</strong> x /= y @@ -52,7 +50,3 @@ bar /= 0 // Infinity</pre> <li><a href="/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#Assignment">Assignment operators in the JS guide</a></li> <li><a href="/en-US/docs/Web/JavaScript/Reference/Operators/Division">Division operator</a></li> </ul> - -<p> - <audio class="hidden"></audio> -</p> diff --git a/files/zh-cn/web/javascript/reference/operators/exponentiation/index.html b/files/zh-cn/web/javascript/reference/operators/exponentiation/index.html index 7e138abfa2..a98fd33e79 100644 --- a/files/zh-cn/web/javascript/reference/operators/exponentiation/index.html +++ b/files/zh-cn/web/javascript/reference/operators/exponentiation/index.html @@ -101,7 +101,3 @@ NaN ** 2 // NaN <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> - -<p> - <audio class="hidden"></audio> -</p> diff --git a/files/zh-cn/web/javascript/reference/operators/exponentiation_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/exponentiation_assignment/index.html index bd8e58da23..615530a4b4 100644 --- a/files/zh-cn/web/javascript/reference/operators/exponentiation_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/exponentiation_assignment/index.html @@ -53,7 +53,3 @@ bar **= 'foo' // NaN</pre> <li><a href="/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#Assignment">Assignment operators in the JS guide</a></li> <li><a href="/en-US/docs/Web/JavaScript/Reference/Operators/Exponentiation">Exponentiation operator</a></li> </ul> - -<p> - <audio class="hidden"></audio> -</p> diff --git a/files/zh-cn/web/javascript/reference/operators/grouping/index.html b/files/zh-cn/web/javascript/reference/operators/grouping/index.html index 5856cc2324..77e572a4ce 100644 --- a/files/zh-cn/web/javascript/reference/operators/grouping/index.html +++ b/files/zh-cn/web/javascript/reference/operators/grouping/index.html @@ -13,8 +13,6 @@ translation_of: Web/JavaScript/Reference/Operators/Grouping <div>{{EmbedInteractiveExample("pages/js/expressions-groupingoperator.html")}}</div> -<p class="hidden">这些交互的事例资源都是基于Github的仓库.如果你想提交更多的交互事例,请克隆这个url<a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> 并且向我们发送合并请求。</p> - <h2 id="语法">语法</h2> <p>译者:下列语法是 MDN 上已知的最简单的之一。</p> 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 6d5ed6ff6c..131144457c 100644 --- a/files/zh-cn/web/javascript/reference/operators/inequality/index.html +++ b/files/zh-cn/web/javascript/reference/operators/inequality/index.html @@ -14,8 +14,6 @@ translation_of: Web/JavaScript/Reference/Operators/Inequality <div>{{EmbedInteractiveExample("pages/js/expressions-inequality.html")}}</div> -<p class="hidden">该交互式示例的源代码存储在GitHub存储库中。如果您想为交互式示例项目做出贡献,请克隆<a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a>并向我们发送请求请求。</p> - <h2 id="语法">语法</h2> <pre class="syntaxbox">x != y</pre> diff --git a/files/zh-cn/web/javascript/reference/operators/left_shift/index.html b/files/zh-cn/web/javascript/reference/operators/left_shift/index.html index 4bae0bcde0..3c4f0b3b6a 100644 --- a/files/zh-cn/web/javascript/reference/operators/left_shift/index.html +++ b/files/zh-cn/web/javascript/reference/operators/left_shift/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Left_shift <div>{{EmbedInteractiveExample("pages/js/expressions-left-shift.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><code><var>a</var> << <var>b</var></code> @@ -66,7 +64,3 @@ translation_of: Web/JavaScript/Reference/Operators/Left_shift <li><a href="/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#Bitwise">Bitwise operators in the JS guide</a></li> <li><a href="/en-US/docs/Web/JavaScript/Reference/Operators/Left_shift_assignment">Left shift assignment operator</a></li> </ul> - -<p> - <audio class="hidden"></audio> -</p> diff --git a/files/zh-cn/web/javascript/reference/operators/left_shift_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/left_shift_assignment/index.html index e48b9616d0..c39333f30b 100644 --- a/files/zh-cn/web/javascript/reference/operators/left_shift_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/left_shift_assignment/index.html @@ -53,7 +53,3 @@ a <<= 2; // 20 <li><a href="/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#Assignment">Assignment operators in the JS guide</a></li> <li><a href="/en-US/docs/Web/JavaScript/Reference/Operators/Left_shift">Left shift operator</a></li> </ul> - -<p> - <audio class="hidden"></audio> -</p> diff --git a/files/zh-cn/web/javascript/reference/operators/less_than_or_equal/index.html b/files/zh-cn/web/javascript/reference/operators/less_than_or_equal/index.html index 498dc2bbfd..91d207ef1f 100644 --- a/files/zh-cn/web/javascript/reference/operators/less_than_or_equal/index.html +++ b/files/zh-cn/web/javascript/reference/operators/less_than_or_equal/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Less_than_or_equal <div>{{EmbedInteractiveExample("pages/js/expressions-less-than-or-equal.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="Syntax">Syntax</h2> <pre class="syntaxbox"> x <= y</pre> diff --git a/files/zh-cn/web/javascript/reference/operators/logical_and/index.html b/files/zh-cn/web/javascript/reference/operators/logical_and/index.html index e418a76518..531875401e 100644 --- a/files/zh-cn/web/javascript/reference/operators/logical_and/index.html +++ b/files/zh-cn/web/javascript/reference/operators/logical_and/index.html @@ -10,8 +10,6 @@ original_slug: Web/JavaScript/Reference/Operators/逻辑和 <div>{{EmbedInteractiveExample("pages/js/expressions-logical-and.html", "shorter")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="Syntax">Syntax</h2> <pre class="syntaxbox"><em>expr1</em> && <em>expr2</em> diff --git a/files/zh-cn/web/javascript/reference/operators/logical_and_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/logical_and_assignment/index.html index 4ee00585a5..0f4604f232 100644 --- a/files/zh-cn/web/javascript/reference/operators/logical_and_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/logical_and_assignment/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Logical_AND_assignment <div>{{EmbedInteractiveExample("pages/js/expressions-logical-and-assignment.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><em>expr1</em> &&= <em>expr2</em> diff --git a/files/zh-cn/web/javascript/reference/operators/logical_not/index.html b/files/zh-cn/web/javascript/reference/operators/logical_not/index.html index e27ad4db4f..222c1e6e3b 100644 --- a/files/zh-cn/web/javascript/reference/operators/logical_not/index.html +++ b/files/zh-cn/web/javascript/reference/operators/logical_not/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Logical_NOT <div>{{EmbedInteractiveExample("pages/js/expressions-logical-not.html", "shorter")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox">!<var>expr</var> @@ -98,7 +96,3 @@ n6 = !!Boolean(false) // !!falsy returns false</pre> <li>{{Glossary("Truthy")}}</li> <li>{{Glossary("Falsy")}}</li> </ul> - -<p> - <audio class="hidden"></audio> -</p> diff --git a/files/zh-cn/web/javascript/reference/operators/logical_nullish_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/logical_nullish_assignment/index.html index c4fea43591..a97320ba3a 100644 --- a/files/zh-cn/web/javascript/reference/operators/logical_nullish_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/logical_nullish_assignment/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Logical_nullish_assignment <div>{{EmbedInteractiveExample("pages/js/expressions-logical-nullish-assignment.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><em>expr1</em> ??= <em>expr2</em> diff --git a/files/zh-cn/web/javascript/reference/operators/logical_or/index.html b/files/zh-cn/web/javascript/reference/operators/logical_or/index.html index 3604b99140..d159e76866 100644 --- a/files/zh-cn/web/javascript/reference/operators/logical_or/index.html +++ b/files/zh-cn/web/javascript/reference/operators/logical_or/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Logical_OR <div>{{EmbedInteractiveExample("pages/js/expressions-logical-or.html", "shorter")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><em>expr1</em> || <em>expr2</em> 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 a70b8dad19..6888b2f10b 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 @@ -18,9 +18,6 @@ translation_of: Web/JavaScript/Reference/Operators/Nullish_coalescing_operator <div>{{EmbedInteractiveExample("pages/js/expressions-nullishcoalescingoperator.html")}}</div> -<p class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.<br> - See <a href="https://github.com/mdn/interactive-examples/pull/1482#issuecomment-553841750">PR #1482</a> regarding the addition of this example.</p> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><var>leftExpr</var> ?? <var>rightExpr</var> diff --git a/files/zh-cn/web/javascript/reference/operators/right_shift/index.html b/files/zh-cn/web/javascript/reference/operators/right_shift/index.html index 583da5cafe..b8275e16d7 100644 --- a/files/zh-cn/web/javascript/reference/operators/right_shift/index.html +++ b/files/zh-cn/web/javascript/reference/operators/right_shift/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Right_shift <div>{{EmbedInteractiveExample("pages/js/expressions-right-shift.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><code><var>a</var> >> <var>b</var></code> @@ -69,7 +67,3 @@ translation_of: Web/JavaScript/Reference/Operators/Right_shift <li><a href="/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#Bitwise">Bitwise operators in the JS guide</a></li> <li><a href="/en-US/docs/Web/JavaScript/Reference/Operators/Right_shift_assignment">Right shift assignment operator</a></li> </ul> - -<p> - <audio class="hidden"></audio> -</p> diff --git a/files/zh-cn/web/javascript/reference/operators/right_shift_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/right_shift_assignment/index.html index 0ebfbbd51e..069f47a628 100644 --- a/files/zh-cn/web/javascript/reference/operators/right_shift_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/right_shift_assignment/index.html @@ -53,7 +53,3 @@ b >>= 2; // -2 (-00000000000000000000000000000010)</pre> <li><a href="/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#Assignment">Assignment operators in the JS guide</a></li> <li><a href="/en-US/docs/Web/JavaScript/Reference/Operators/Right_shift">Right shift operator</a></li> </ul> - -<p> - <audio class="hidden"></audio> -</p> diff --git a/files/zh-cn/web/javascript/reference/operators/spread_syntax/index.html b/files/zh-cn/web/javascript/reference/operators/spread_syntax/index.html index 3f21c5b960..631a2ff8ca 100644 --- a/files/zh-cn/web/javascript/reference/operators/spread_syntax/index.html +++ b/files/zh-cn/web/javascript/reference/operators/spread_syntax/index.html @@ -14,8 +14,6 @@ translation_of: Web/JavaScript/Reference/Operators/Spread_syntax <div>{{EmbedInteractiveExample("pages/js/expressions-spreadsyntax.html")}}</div> -<p class="hidden">该示例的源代码存放于Github中,如果你想进行修订,请先克隆<a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a>, 修改完成之后再通过pull request的方式推送给源仓库。</p> - <h2 id="语法">语法</h2> <p>函数调用:</p> diff --git a/files/zh-cn/web/javascript/reference/operators/strict_equality/index.html b/files/zh-cn/web/javascript/reference/operators/strict_equality/index.html index 1b8211841a..a352c8407b 100644 --- a/files/zh-cn/web/javascript/reference/operators/strict_equality/index.html +++ b/files/zh-cn/web/javascript/reference/operators/strict_equality/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Strict_equality <div>{{EmbedInteractiveExample("pages/js/expressions-strict-equality.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox">x === y</pre> diff --git a/files/zh-cn/web/javascript/reference/operators/strict_inequality/index.html b/files/zh-cn/web/javascript/reference/operators/strict_inequality/index.html index 26efd1748f..083c9470a7 100644 --- a/files/zh-cn/web/javascript/reference/operators/strict_inequality/index.html +++ b/files/zh-cn/web/javascript/reference/operators/strict_inequality/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Strict_inequality <div>{{EmbedInteractiveExample("pages/js/expressions-strict-equality.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox">x !== y</pre> diff --git a/files/zh-cn/web/javascript/reference/operators/subtraction/index.html b/files/zh-cn/web/javascript/reference/operators/subtraction/index.html index c4307e2ace..7eb1f7814a 100644 --- a/files/zh-cn/web/javascript/reference/operators/subtraction/index.html +++ b/files/zh-cn/web/javascript/reference/operators/subtraction/index.html @@ -61,7 +61,3 @@ translation_of: Web/JavaScript/Reference/Operators/Subtraction <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> - -<p> - <audio class="hidden"></audio> -</p> diff --git a/files/zh-cn/web/javascript/reference/operators/subtraction_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/subtraction_assignment/index.html index 9d96a67f7e..8052f01b9e 100644 --- a/files/zh-cn/web/javascript/reference/operators/subtraction_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/subtraction_assignment/index.html @@ -53,7 +53,3 @@ bar -= 'foo' // NaN</pre> <li><a href="/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#Assignment">Assignment operators in the JS guide</a></li> <li><a href="/en-US/docs/Web/JavaScript/Reference/Operators/Subtraction">Subtraction operator</a></li> </ul> - -<p> - <audio class="hidden"></audio> -</p> diff --git a/files/zh-cn/web/javascript/reference/operators/unary_negation/index.html b/files/zh-cn/web/javascript/reference/operators/unary_negation/index.html index 887a79a2a0..97eac43a02 100644 --- a/files/zh-cn/web/javascript/reference/operators/unary_negation/index.html +++ b/files/zh-cn/web/javascript/reference/operators/unary_negation/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Unary_negation <div>{{EmbedInteractiveExample("pages/js/expressions-unary-negation.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><strong>Operator:</strong> -<var>x</var> diff --git a/files/zh-cn/web/javascript/reference/operators/unsigned_right_shift/index.html b/files/zh-cn/web/javascript/reference/operators/unsigned_right_shift/index.html index 52f18ea92c..eb7b984194 100644 --- a/files/zh-cn/web/javascript/reference/operators/unsigned_right_shift/index.html +++ b/files/zh-cn/web/javascript/reference/operators/unsigned_right_shift/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Unsigned_right_shift <div>{{EmbedInteractiveExample("pages/js/expressions-unsigned-right-shift.html")}}</div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox"><code><var>a</var> >>> <var>b</var></code> diff --git a/files/zh-cn/web/javascript/reference/statements/async_function/index.html b/files/zh-cn/web/javascript/reference/statements/async_function/index.html index b4bdd88173..bca5f86818 100644 --- a/files/zh-cn/web/javascript/reference/statements/async_function/index.html +++ b/files/zh-cn/web/javascript/reference/statements/async_function/index.html @@ -19,8 +19,6 @@ translation_of: Web/JavaScript/Reference/Statements/async_function <div>{{EmbedInteractiveExample("pages/js/statement-async.html", "taller")}}</div> -<p class="hidden">该交互式demo源文件存储于Github仓库中。如果希望为此交互式项目做出贡献,请 clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> 项目并用pull形式向我们的原始仓库发出请求。</p> - <h2 id="语法">语法</h2> <pre class="syntaxbox">async function <em>name</em>([<em>param</em>[, <em>param</em>[, ... <em>param</em>]]]) { diff --git a/files/zh-cn/web/javascript/reference/statements/function/index.html b/files/zh-cn/web/javascript/reference/statements/function/index.html index 0ab978503d..4d8e036a2e 100644 --- a/files/zh-cn/web/javascript/reference/statements/function/index.html +++ b/files/zh-cn/web/javascript/reference/statements/function/index.html @@ -17,8 +17,6 @@ translation_of: Web/JavaScript/Reference/Statements/function <p>你还可以使用 {{jsxref("Function")}} 构造函数和 一个{{jsxref("Operators/function", "function expression")}} 定义函数。</p> </div> -<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> - <h2 id="语法">语法</h2> <pre class="eval">function <em>name</em>([<em>param</em>,[, <em>param</em>,[..., <em>param</em>]]]) { diff --git a/files/zh-cn/web/javascript/reference/statements/if...else/index.html b/files/zh-cn/web/javascript/reference/statements/if...else/index.html index 8b57fa8188..3c64ce0538 100644 --- a/files/zh-cn/web/javascript/reference/statements/if...else/index.html +++ b/files/zh-cn/web/javascript/reference/statements/if...else/index.html @@ -14,10 +14,6 @@ translation_of: Web/JavaScript/Reference/Statements/if...else <p>{{EmbedInteractiveExample("pages/js/statement-ifelse.html")}}</p> -<div class="hidden"> -<p>The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p> -</div> - <h2 id="Syntax" name="Syntax">语法</h2> <pre class="syntaxbox">if (<em>condition</em>) diff --git a/files/zh-cn/web/javascript/reference/statements/throw/index.html b/files/zh-cn/web/javascript/reference/statements/throw/index.html index 081352fdea..913f08361f 100644 --- a/files/zh-cn/web/javascript/reference/statements/throw/index.html +++ b/files/zh-cn/web/javascript/reference/statements/throw/index.html @@ -12,10 +12,6 @@ translation_of: Web/JavaScript/Reference/Statements/throw <p>{{EmbedInteractiveExample("pages/js/statement-throw.html")}}</p> -<div class="hidden"> -<p>The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p> -</div> - <h2 id="语法">语法</h2> <pre class="syntaxbox">throw <em>expression</em>; </pre> |