From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../global_objects/date/tosource/index.html | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 files/zh-cn/web/javascript/reference/global_objects/date/tosource/index.html (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/tosource') diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/tosource/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/tosource/index.html new file mode 100644 index 0000000000..dbcae1c739 --- /dev/null +++ b/files/zh-cn/web/javascript/reference/global_objects/date/tosource/index.html @@ -0,0 +1,50 @@ +--- +title: Date.prototype.toSource() +slug: Web/JavaScript/Reference/Global_Objects/Date/toSource +translation_of: Web/JavaScript/Reference/Global_Objects/Date/toSource +--- +
{{JSRef}} {{non-standard_header}}
+ +

toSource() 返回表示源代码的字符串。

+ +

语法

+ +
dateObj.toSource()
+Date.toSource()
+ +

返回值

+ +

 表示{{jsxref("Global_Objects/Date", "Date")}} 源代码的字符串

+ +

描述

+ +

toSource() 返回以下参数:

+ + + +

此方法通常由JavaScript内部调用,而不是在代码中显式调用。

+ +

规范

+ +

暂无标准, 在 JavaScript 1.3中实现.

+ +

浏览器兼容性

+ + + +

{{Compat("javascript.builtins.Date.toSource")}}

+ +

相关链接

+ + -- cgit v1.2.3-54-g00ecf