一、创建对象的几种方法
// 对象字面量var O1 = {name: 'o1'}// 方法二var o2 = new Object({name: 'o2'})// 方法三var M = function(name) {this.name = name}var o3 = new M('o3')// 方法四var P = {name: 'o4'}var o4 = Object.create(P)

二、instanceof原理

o3 instanceof M = true
o3 instanceof Object = true
instanceof 运算符 在o3实例原型链上的构造函数都会返回true 所有可以使用constructor
三、new运算符原理

