From d9e9adb5f80a819fe46349bcf6d1faec734b09cd Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:07:31 +0800 Subject: remove span tag in zh-CN --- .../javascript/reference/global_objects/date/gethours/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html') diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html index c15bc0f6cf..eb8ad854e1 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html @@ -29,10 +29,10 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getHours

下面第二条语句,基于日期对象 Xmas95 的值,把 23 赋值给了变量 hours。

-
var Xmas95 = new Date("December 25, 1995 23:15:00");
-var hours = Xmas95.getHours();
+
var Xmas95 = new Date("December 25, 1995 23:15:00");
+var hours = Xmas95.getHours();
 
-alert(hours); // 23
+alert(hours); // 23

规范

-- cgit v1.2.3-54-g00ecf