--- 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>