function Cat(name) { this.name = name; }
Cat.prototype.say = function() { return 'Hello, ' + this.name + '!'; }
Sign in to make a reply
狼叔叔
function Cat(name) { this.name = name; }
Cat.prototype.say = function() { return 'Hello, ' + this.name + '!'; }