用关键字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
相关文章
相关标签/搜索