diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/index.html')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/date/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
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(), |