ES6 Object() 构造函数 ES6 对象初始化 ES6 Object() 构造函数 ES6 Object() 构造函数 var myCar = new Object(); myCar.make = "Ford"; //define an object myCar.model = "Mustang"; myCar.year = 1987; console.log(myCar["make"]) //access the object property console.log(myCar["model"]) console.log(myCar["year"]) ES6 对象初始化 ES6 Object() 构造函数