this . person = { };
this.person.name={
first:名字first,
姓氏:名字.姓氏
}
this.interests =利益;
var a =新人({first:'鮑勃',last:'史密斯' },['音樂','滑雪']);
構造函數通過new構建函數,函數中的這個點就是這個函數,而不是window。函數中給定的屬性屬於此構造函數。