diff options
Diffstat (limited to 'files/zh-tw/web/javascript/reference/global_objects')
5 files changed, 3 insertions, 15 deletions
diff --git a/files/zh-tw/web/javascript/reference/global_objects/array/flat/index.html b/files/zh-tw/web/javascript/reference/global_objects/array/flat/index.html index 8a6a4b2549..e6a5002930 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/array/flat/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/array/flat/index.html @@ -12,7 +12,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/flat <p><code><strong>flat()</strong></code> 函數以遞迴方式將特定深度的子陣列重新串接成為一新的陣列</p> -<p class="hidden">\{{EmbedInteractiveExample("pages/js/array-flatten.html")}}</p> +<p >\{{EmbedInteractiveExample("pages/js/array-flatten.html")}}</p> diff --git a/files/zh-tw/web/javascript/reference/global_objects/array/slice/index.html b/files/zh-tw/web/javascript/reference/global_objects/array/slice/index.html index 7079acee9d..4512eecf4e 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/array/slice/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/array/slice/index.html @@ -15,8 +15,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(<em>[</em><var>begin[</var>, <var>end]]</var>) diff --git a/files/zh-tw/web/javascript/reference/global_objects/date/getday/index.html b/files/zh-tw/web/javascript/reference/global_objects/date/getday/index.html index 18d250f6fd..dd5ebc36d4 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/date/getday/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/date/getday/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getDay <div>{{EmbedInteractiveExample("pages/js/date-getday.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"><code><var>dateObj</var>.getDay()</code></pre> diff --git a/files/zh-tw/web/javascript/reference/global_objects/promise/finally/index.html b/files/zh-tw/web/javascript/reference/global_objects/promise/finally/index.html index 77adc0c6fa..d1d76d3d80 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/promise/finally/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/promise/finally/index.html @@ -66,10 +66,6 @@ fetch(myRequest).then(function(response) { </pre> -<div class="hidden"> -<p>Please do not add polyfills on MDN pages. For more details, refer to: <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="Specifications">Specifications</h2> <table class="standard-table"> diff --git a/files/zh-tw/web/javascript/reference/global_objects/promise/index.html b/files/zh-tw/web/javascript/reference/global_objects/promise/index.html index 60930d642f..c14a429795 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/promise/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/promise/index.html @@ -13,10 +13,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise <div>{{EmbedInteractiveExample("pages/js/promise-constructor.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="brush: js">new Promise( /* executor */ function(resolve, reject) { ... } );</pre> @@ -139,7 +135,7 @@ myFirstPromise.then((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> @@ -193,7 +189,7 @@ function testPromise() { <p><sub>*譯註:resolver function 即 executor function。</sub></p> -<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 { |