//利用new Object创建对象
var obj = new Object()
obj.name = "张三"
obj.age = 18
obj.sex = '男'
obj.sayHi = function() {
console.log('hi');
}
console.log(obj);
var obj = {
name: '易洋千玺',
age: 18,
sex: '男'
}
console.log(obj.name);
console.log(obj['name']); // obj['属性名']