具體的代碼例子如下 function Animal() { this.type = 'Cat' this.name = 'Nini' this.hobbies = ['eat fish', 'play ball'] } Animal.prototype.say ...
確定! 回上一頁