JavaScript Date constructor 属性 描述 Javascript date constructor 属性返回一个引用到创建该实例原型的数组函数。 语法 其语法如下 − date.constructorHTMLCopy 返回值 返回创建此对象实例的函数。 示例 尝试以下示例。 <html> <head> <title>JavaScript Date constructor Property</title> </head> <body> <script type = "text/javascript"> var dt = new Date(); document.write("dt.constructor is : " + dt.constructor); </script> </body> </html> HTMLCopy 输出 dt.constructor is: function Date() { [native code] } HTMLCopy