function Student(){}
function Person(){}
Student.prototype = Object.create(Person.prototype);
//Student.prototype.constructor = Student;
console.log(Student.prototype);
注释前,Student.prototype为Student{};
解除后,Student.prototype为Object{}。
Object.create函数返回的为什么是Object对象(不应该是Person{}吗)?
修改Student.prototype.constructor属性为什么可以更改Student.prototype?