function FunctionClass() { this.name = "test";
}
FunctionClass.prototype = { setVal: function() { console.log("xxx");
}
}console.log(FunctionClass.prototype.constructor === FunctionClass)会有什么问题?
可否举几个例子,先谢过大家。
BIG阳
随时随地看视频慕课网APP
相关分类