使用 Object.getPrototypeOf();
function Person(name){ this.name = name; } var lilei = new Person("Lilei"); Object.getPrototypeOf(lilei); // {constructor: ƒ} lilei.constructor.prototype; // {constructor: f}
原文:https://www.cnblogs.com/aisowe/p/11674451.html