aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/document/lastmodified/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/document/lastmodified/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/document/lastmodified/index.html')
-rw-r--r--files/zh-cn/web/api/document/lastmodified/index.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/document/lastmodified/index.html b/files/zh-cn/web/api/document/lastmodified/index.html
new file mode 100644
index 0000000000..2a3ff81130
--- /dev/null
+++ b/files/zh-cn/web/api/document/lastmodified/index.html
@@ -0,0 +1,31 @@
+---
+title: document.lastModified
+slug: Web/API/Document/lastModified
+translation_of: Web/API/Document/lastModified
+---
+<p>{{ ApiRef() }}</p>
+
+<h3 id="Summary" name="Summary">概述</h3>
+
+<p>返回一个字符串,其中包含了当前文档的最后修改日期和时间.</p>
+
+<h3 id="Syntax" name="Syntax">语法</h3>
+
+<pre class="eval"><em>var string</em> = document.lastModified;
+</pre>
+
+<h3 id="Example" name="Example">例子</h3>
+
+<pre class="eval">dump(document.lastModified);
+// 返回: Tuesday, July 10, 2001 10:19:42
+</pre>
+
+<h3 id="Notes" name="Notes">备注</h3>
+
+<p>需要注意的是,作为一个字符串,<code>lastModified</code> 不能很容易的被用于与该文档的修改日期做比较.</p>
+
+<p>Webkit返回的时间为UTC时间;Gecko和IE返回的时间为本地时区时间.</p>
+
+<p id="Specification">{{Compat("api.Document.lastModified")}}</p>
+
+<p> </p>