JavaScript constructor 属性
最后更新于:2022-03-26 21:59:19
JavaScript constructor 属性
JavaScript Date 对象
实例
返回创建Date对象的函数原型:
myDate.constructor;
结果输出:
function Date() { [native code] }
尝试一下 »
定义和用法
constructor 属性返回对创建此对象的 Date 函数的引用。
浏览器支持





所有主要浏览器都支持constructor属性。
语法
技术细节
返回值: |
函数对象。Date对象的函数原型。 |
JavaScript 版本: |
1.1 |
JavaScript Date 对象