用關鍵字new建立對象 new都作了什麼

function Person () {     this.name = name;     this.age = age;     this.job = job;     this.sayName = function () {         return this.name;     }; } var person = new Person(「tom」, 21, 「WEB」); consol
相關文章
相關標籤/搜索