原型链
//父类
function people(name,age,color){
this.name=name
this.age=age
this.color
}
people.prototype.move=function(){
console.log(this.name+"正在工作")
}
//子类
function student(name,age,color){
}
student.prototype=new people("王一",18,"黑色");
student.prototype.mystudents=function(){
console.log("学习")
}
var s1=new student()
s1.move()
s1.mystudents()