用關鍵字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"); con
相關文章
相關標籤/搜索