File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -317,15 +317,15 @@ d.toTimeString() // "00:00:00 GMT+0800 (CST)"
317317var d = new Date (2013 , 0 , 1 );
318318
319319d .toLocaleString ()
320- // 中文版浏览器为"2013年1月1日 上午12 :00:00"
320+ // 中文版浏览器为"2013/1/1 00 :00:00"
321321// 英文版浏览器为"1/1/2013 12:00:00 AM"
322322
323323d .toLocaleDateString ()
324- // 中文版浏览器为"2013年1月1日 "
324+ // 中文版浏览器为"2013/1/1 "
325325// 英文版浏览器为"1/1/2013"
326326
327327d .toLocaleTimeString ()
328- // 中文版浏览器为"上午12 :00:00"
328+ // 中文版浏览器为"00 :00:00"
329329// 英文版浏览器为"12:00:00 AM"
330330```
331331
@@ -343,13 +343,13 @@ dateObj.toLocaleTimeString([locales[, options]])
343343var d = new Date (2013 , 0 , 1 );
344344
345345d .toLocaleString (' en-US' ) // "1/1/2013, 12:00:00 AM"
346- d .toLocaleString (' zh-CN' ) // "2013/1/1 上午12 :00:00"
346+ d .toLocaleString (' zh-CN' ) // "2013/1/1 00 :00:00"
347347
348348d .toLocaleDateString (' en-US' ) // "1/1/2013"
349349d .toLocaleDateString (' zh-CN' ) // "2013/1/1"
350350
351351d .toLocaleTimeString (' en-US' ) // "12:00:00 AM"
352- d .toLocaleTimeString (' zh-CN' ) // "上午12 :00:00"
352+ d .toLocaleTimeString (' zh-CN' ) // "00 :00:00"
353353```
354354
355355` options ` 配置对象有以下属性。
You can’t perform that action at this time.
0 commit comments