JS实现继承
function Person() {}
function Student() {}
Student.prototype = Object.create(Person.prototype);
Student.prototype.constructor = Student;
//Object.create不支持ECMA5以下
if(!Object.create){
Object.create = function(proto){
function F(){}
F.prototype = proto;
return new F;
}
}