`MyFunc.constructor`指向哪里以及它的用途是什么

时间:2017-03-23 01:21:20

标签: javascript inheritance constructor prototype

我目前正在学习javascript原型和继承(男人,这很令人困惑,但还在继续战斗)

function MyFunc(){}

我注意到constructorMyFunc

上都有MyFunc.prototype个属性

enter image description here

我知道MyFunc.prototype.constructor指向MyFunc,但我不确定Myfunc.constructor指向的位置?

那么MyFunc.constructor指向哪里以及它的用途是什么?

0 个答案:

没有答案