aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/javascript
diff options
context:
space:
mode:
authorwildskyf <poppin.wildsky+gh@gmail.com>2021-04-14 17:40:06 +0800
committerIrvin <irvinfly@gmail.com>2021-04-14 18:08:04 +0800
commitcc03ce3d7332457067e320d182307a3fc7285a4e (patch)
tree9ea2448d0f2c3d84383d3d7780d88b637c2fc70f /files/zh-tw/web/javascript
parentdb26cf86829f9b43d29f18b9bbf197e9e2d55c31 (diff)
downloadtranslated-content-cc03ce3d7332457067e320d182307a3fc7285a4e.tar.gz
translated-content-cc03ce3d7332457067e320d182307a3fc7285a4e.tar.bz2
translated-content-cc03ce3d7332457067e320d182307a3fc7285a4e.zip
remove useless dir="rtl" for zh-TW
Diffstat (limited to 'files/zh-tw/web/javascript')
-rw-r--r--files/zh-tw/web/javascript/guide/grammar_and_types/index.html2
-rw-r--r--files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html2
-rw-r--r--files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html2
-rw-r--r--files/zh-tw/web/javascript/reference/operators/this/index.html2
4 files changed, 4 insertions, 4 deletions
diff --git a/files/zh-tw/web/javascript/guide/grammar_and_types/index.html b/files/zh-tw/web/javascript/guide/grammar_and_types/index.html
index ac059a7f24..a8eafbba5f 100644
--- a/files/zh-tw/web/javascript/guide/grammar_and_types/index.html
+++ b/files/zh-tw/web/javascript/guide/grammar_and_types/index.html
@@ -675,7 +675,7 @@ and so is foo.'
<p>ECMAScript 2015 introduces a new type of literal, namely <a href="/en-US/docs/Web/JavaScript/Reference/template_strings"><strong>template literals</strong></a>. This allows for many new features including multiline strings!</p>
-<pre class="brush: js" dir="rtl">var poem =
+<pre class="brush: js">var poem =
`Roses are red,
Violets are blue.
Sugar is sweet,
diff --git a/files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html b/files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html
index 7240184a75..bfb0eb739f 100644
--- a/files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html
+++ b/files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html
@@ -175,7 +175,7 @@ items.sort(function (a, b) {
<p><code>compareFunction</code> 可以被陣列中的各個元素多次呼叫。依據 <code>compareFunction</code> 的特性,這將會產生大量運算。越多元素要排序 <code>compareFunction</code> 就越多工作要做,因此選擇使用 <a href="/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Array/map">map</a> 來排列也就是一個更明智的選擇。作法為先迭代陣列一次來取得排序時所需的值至暫時的陣列,並對此臨時陣列進行排序。然後再迭代臨時陣列來將正確順序之值放入原始陣列中。</p>
-<pre class="brush: js" dir="rtl">// the array to be sorted
+<pre class="brush: js">// the array to be sorted
var list = ['Delta', 'alpha', 'CHARLIE', 'bravo'];
// temporary array holds objects with position and sort-value
diff --git a/files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html b/files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html
index 91be97bc11..1713164868 100644
--- a/files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html
+++ b/files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html
@@ -43,7 +43,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/abs
<p>Passing an empty object, an array with more than one member, a non-numeric string or {{jsxref("undefined")}}/empty variable returns {{jsxref("NaN")}}. Passing {{jsxref("null")}}, an empty string or an empty array returns 0.</p>
-<pre class="brush: js" dir="rtl">Math.abs('-1'); // 1
+<pre class="brush: js">Math.abs('-1'); // 1
Math.abs(-2); // 2
Math.abs(null); // 0
Math.abs(''); // 0
diff --git a/files/zh-tw/web/javascript/reference/operators/this/index.html b/files/zh-tw/web/javascript/reference/operators/this/index.html
index e26b592244..503ef720e4 100644
--- a/files/zh-tw/web/javascript/reference/operators/this/index.html
+++ b/files/zh-tw/web/javascript/reference/operators/this/index.html
@@ -71,7 +71,7 @@ f2() === undefined; //true</pre>
<p>要從某個語境訪問另一個 <code>this</code> 語境的值,請使用 <a href="/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Function/call">call</a> 或 <a href="/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Function/apply">apply</a>:</p>
-<pre dir="rtl">// 物件可以被當作call或apply的第一個參數,而this會綁定該物件
+<pre>// 物件可以被當作call或apply的第一個參數,而this會綁定該物件
var obj = {a: 'Custom'};
// 此屬性a為全域物件