diff options
| author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:08 +0800 |
|---|---|---|
| committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
| commit | ded7faccb46997b20767ef9a3e6d5f5810a52cf8 (patch) | |
| tree | c288f54ecd9d3a00b04b178e673967e4351f01d7 /files/zh-cn/web/javascript/reference/global_objects/date | |
| parent | 60c5be764d1ae5958db85075ffe8322e9118bd5f (diff) | |
| download | translated-content-ded7faccb46997b20767ef9a3e6d5f5810a52cf8.tar.gz translated-content-ded7faccb46997b20767ef9a3e6d5f5810a52cf8.tar.bz2 translated-content-ded7faccb46997b20767ef9a3e6d5f5810a52cf8.zip | |
remove dir attribute
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date')
3 files changed, 3 insertions, 3 deletions
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(), |
