aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/getminutes/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/statements/export/index.html2
8 files changed, 8 insertions, 8 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html b/files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html
index 566ba9e61e..c056ac16eb 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/bigint64array/index.html
@@ -57,7 +57,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/BigInt64Array
<dd>
<div class="trans-left">
<div class="trans-input-wrap">
- <div class="input-wrap" dir="ltr">用静态值填充从起始索引到结束索引的数组的所有元素。另请参见{jsxref(“Array.prototype.fill()")}}</div>
+ <div class="input-wrap">用静态值填充从起始索引到结束索引的数组的所有元素。另请参见{jsxref(“Array.prototype.fill()")}}</div>
</div>
</div>
</dd>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html
index d9c68dacb4..cc3a17b6c4 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html
@@ -32,7 +32,7 @@ var weekday = Xmas95.getDay();
console.log(weekday); // 1</pre>
<div class="blockIndicator note">
-<p dir="ltr">注意:如果需要,可以使用{{jsxref("DateTimeFormat", "Intl.DateTimeFormat")}}与一个额外的<code>options</code> 参数,从而返回这天的全称(如<code>"Monday"</code>).使用此方法,结果会更加国际化:</p>
+<p>注意:如果需要,可以使用{{jsxref("DateTimeFormat", "Intl.DateTimeFormat")}}与一个额外的<code>options</code> 参数,从而返回这天的全称(如<code>"Monday"</code>).使用此方法,结果会更加国际化:</p>
<pre class="brush: js"><code>var options = { weekday: 'long'};
console.log(new Intl.DateTimeFormat('en-US', options).format(Xmas95));
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getminutes/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getminutes/index.html
index bd99ad3db0..27adb1a179 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/getminutes/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/getminutes/index.html
@@ -30,7 +30,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getMinutes
<pre class="brush:js language-js">var Xmas95 = new Date("December 25, 1995 23:15:00");
var minutes = Xmas95.getMinutes();</pre>
-<p dir="ltr"><strong>规范</strong></p>
+<p><strong>规范</strong></p>
<table class="standard-table">
<tbody>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/index.html
index 764d868453..f2b08d51d5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/index.html
@@ -188,7 +188,7 @@ doSomethingForALongTime();
var end = new Date();
var elapsed = end.getTime() - start.getTime(); // 运行时间的毫秒值</pre>
-<pre class="brush: js" dir="ltr">// to test a function and get back its return
+<pre class="brush: js">// to test a function and get back its return
function printElapsedTime (fTest) {
var nStartTime = Date.now(),
vReturn = fTest(),
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html
index 506e303660..4df408bf28 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html
@@ -54,7 +54,7 @@ Math.cbrt(2); // 1.2599210498948734</pre>
<p>为了与旧版浏览器兼容, 可使用下方函数模拟cbrt():</p>
-<pre class="brush: js" dir="rtl">if (!Math.cbrt) {
+<pre class="brush: js">if (!Math.cbrt) {
Math.cbrt = function(x) {
var y = Math.pow(Math.abs(x), 1/3);
return x &lt; 0 ? -y : y;
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 1982ec8968..21fedf362c 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
@@ -130,7 +130,7 @@ print(Number(d));
<h3 id="转换数字字符串为数字">转换数字字符串为数字</h3>
-<pre class="brush: js" dir="rtl">Number('123') // 123
+<pre class="brush: js">Number('123') // 123
Number('12.3') // 12.3
<code>Number('12.00') // 12</code>
Number('123e-1') // 12.3
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html
index 1067350917..6280feeb05 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/valueof/index.html
@@ -88,7 +88,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/valueOf
<pre class="brush: js">myNumberType.valueOf()</pre>
<div class="note">
-<p dir="ltr"><strong>注意:</strong>字符串上下文中的对象通过 {{jsxref("Object.toString", "toString()")}}方法转换,这与使用<code>valueOf</code>转换为原始字符串的{{jsxref("String")}}对象不同。所有对象都能转换成一个“<code>[object <em>类型</em>]</code>”这种格式的字符串。但是很多对象不能转换为数字,布尔或函数。</p>
+<p><strong>注意:</strong>字符串上下文中的对象通过 {{jsxref("Object.toString", "toString()")}}方法转换,这与使用<code>valueOf</code>转换为原始字符串的{{jsxref("String")}}对象不同。所有对象都能转换成一个“<code>[object <em>类型</em>]</code>”这种格式的字符串。但是很多对象不能转换为数字,布尔或函数。</p>
</div>
<h2 id="示例">示例</h2>
diff --git a/files/zh-cn/web/javascript/reference/statements/export/index.html b/files/zh-cn/web/javascript/reference/statements/export/index.html
index 3f955a136f..bcffc5aafc 100644
--- a/files/zh-cn/web/javascript/reference/statements/export/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/export/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Statements/export
<p>在创建JavaScript模块时,<code><strong>export</strong></code> 语句用于从模块中导出实时绑定的函数、对象或原始值,以便其他程序可以通过 {{jsxref("Statements/import", "import")}} 语句使用它们。被导出的绑定值依然可以在本地进行修改。在使用import进行导入时,这些绑定值只能被导入模块所读取,但在export导出模块中对这些绑定值进行修改,所修改的值也会实时地更新。</p>
-<p dir="ltr">无论您是否声明,导出的模块都处于{{jsxref("Strict_mode","严格模式")}}。 export语句不能用在嵌入式脚本中。</p>
+<p>无论您是否声明,导出的模块都处于{{jsxref("Strict_mode","严格模式")}}。 export语句不能用在嵌入式脚本中。</p>
<h2 id="语法">语法</h2>