function Person(name, age) { this.name = name; this.age = age;}Person.prototype.eat =function(){ console.log('吃东西');}function Student(name, age) {}想要student类继承(包含属性和方法)person类比较好的手段是什么?
添加回答
举报
0/150
提交
取消