- 0133技术站
- 联系QQ:18840023
- QQ交流群
- 微信公众号
Javascript Date Constructor属性返回对创建实例原型的数组函数的引用。
语法:
date.constructor
返回值
返回创建此对象实例的函数。
示例:构造函数
var dt = new Date(); console.log("dt.constructor is : " + dt.constructor);
成功执行上述代码后,将显示以下输出:
dt.constructor is : function Date() { [native code] }
推荐手册