不是Person.foo,而是Person.prototype.foo。重名的情况下,只能主动调原型链了const p1 = new Person('张三', 44); console.log(Person.prototype.foo.call(p1));这也是es6中super语法糖的本质
不是Person.foo,而是
Person.prototype.foo
。重名的情况下,只能主动调原型链了这也是es6中
super
语法糖的本质