使用 Object.getPrototypeOf();
function Person(name){ this.name = name; } var lilei = new Person("Lilei"); Object.getPrototypeOf(lilei); // {constructor: ƒ} lilei.constructor.prototype; // {constructor: f}
使用 Object.getPrototypeOf();
function Person(name){ this.name = name; } var lilei = new Person("Lilei"); Object.getPrototypeOf(lilei); // {constructor: ƒ} lilei.constructor.prototype; // {constructor: f}