我正在看一个使用原型的继承示例,如下所示: function Person(name){}
Person.call(this, name)Student.prototype = Object.create(Person.prototype)
Student.prototype.constructor = Studentlet jim = new Student("Jim") 我的问题是,为什么需要<em
根据官方的 The Object.create() method creates a new object with the specified prototype object and properties使用下面的代码,为什么原型不相等??console.log(`${Shape.prototype