From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../zh-cn/web/api/document/lastmodified/index.html | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 files/zh-cn/web/api/document/lastmodified/index.html (limited to 'files/zh-cn/web/api/document/lastmodified/index.html') 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 +--- +

{{ ApiRef() }}

+ +

概述

+ +

返回一个字符串,其中包含了当前文档的最后修改日期和时间.

+ +

语法

+ +
var string = document.lastModified;
+
+ +

例子

+ +
dump(document.lastModified);
+// 返回: Tuesday, July 10, 2001 10:19:42
+
+ +

备注

+ +

需要注意的是,作为一个字符串,lastModified 不能很容易的被用于与该文档的修改日期做比较.

+ +

Webkit返回的时间为UTC时间;Gecko和IE返回的时间为本地时区时间.

+ +

{{Compat("api.Document.lastModified")}}

+ +

 

-- cgit v1.2.3-54-g00ecf