aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/date/togmtstring/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/togmtstring/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/togmtstring/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/togmtstring/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/togmtstring/index.html
index 6891e3c04a..bacbfeb46a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/togmtstring/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/togmtstring/index.html
@@ -9,13 +9,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/toGMTString
<p><strong>Note</strong>: <code>toGMTString</code> is deprecated and should no longer be used, it's only there for backwards compatibility, use {{jsxref("Date.toUTCString", "toUTCString()")}} instead.</p>
-<h2 id="Syntax" name="Syntax">Syntax</h2>
+<h2 id="Syntax">Syntax</h2>
<pre class="syntaxbox"><var>dateObj</var>.toGMTString()</pre>
-<h2 id="Examples" name="Examples">Examples</h2>
+<h2 id="Examples">Examples</h2>
-<h3 id="Example:_Using_toGMTString" name="Example:_Using_toGMTString">Example: Using <code>toGMTString</code></h3>
+<h3 id="Example:_Using_toGMTString">Example: Using <code>toGMTString</code></h3>
<p>In this example, the <code>toGMTString</code> method converts the date to GMT (UTC) using the operating system's time-zone offset and returns a string value that is similar to the following form. The exact format depends on the platform.</p>
@@ -56,7 +56,7 @@ console.log(str); // Mon, 18 Dec 1995 17:28:35 GMT
<p>{{Compat("javascript.builtins.Date.toGMTString")}}</p>
-<h2 id="See_Also" name="See_Also">See also</h2>
+<h2 id="See_Also">See also</h2>
<ul>
<li>{{jsxref("Date.prototype.toLocaleDateString()")}}</li>