看看new 做了啥
function Person( name, age ) {
//var obj = object.create(Person.prototype);
//this = obj;
this.name = name;
this.age = age;
//return thisl
}
看看new 做了啥
function Person( name, age ) {
//var obj = object.create(Person.prototype);
//this = obj;
this.name = name;
this.age = age;
//return thisl
}