手写继承的几种方法 1. 原型链继承 //父类型 function Person(name, age) { this.name = name, this.age = age, this.play = [1, 2, 3] this.setName = function () { } } // Person.prototype.setAge = function () { } //子类型 function Student(price) { this.price = price this.setScore = function () { } } Stu...