javascript中的原型對象

function Person() {} Person.prototype.name = 'kobe' Person.prototype.age = '23' Person.prototype.job = 'player' Person.prototype.sayName = function() { console.log(this.name) } var person1 = new
相關文章
相關標籤/搜索