Discuss / JavaScript / 交作业

交作业

Topic source

hxbdudu

#1 Created at ... [Delete] [Delete and Lock User]

function Student(name) { this.name=name; } Student.prototype.say=function(){ return 'Hello, ' + this.name+'!'; } function Cat(name) { return new Student(name|| {}) }


  • 1

Reply