构造函数构造函数中的this指向new创建的新对象function FOO(name) {this.name = name;console.log(this) // Foo {name: "xiao ming"}}var a = new FOO('xiao ming');