function Person() {}
Person.prototype = {
nickName:"john",
age:15,
showInfo:function() {
return ("我的名字是"+this.nickName+",我现在的年龄:"+this.age);
}
};
function Person() {}
Person.prototype = {
nickName:"john",
age:15,
showInfo:function() {
return ("我的名字是"+this.nickName+",我现在的年龄:"+this.age);
}
};