Function 原型易错点

138 阅读1分钟

在 Function 中新命名的函数的 (Fn)prototype.constructor 都是指向原函数的。

不过 其中的 prototype 被重写过后,


constructor 就指向 Object 了。