function Cat(name){
this.name = name;
};
Cat.prototype.say=function(){
return 'hello,'+this.name+'!';
hello的H大写,逗号后面加空格……
Sign in to make a reply
你仍是少年w
function Cat(name){
this.name = name;
};
Cat.prototype.say=function(){
return 'hello,'+this.name+'!';
};