//定义对象 var a = {type:"Fiat", model:500, color:"white"} //访问对象 console.log(a.type) console.log(a['model']) //修改内容 a.type = 123 console.log(a.type) //添加内容 a["news"] = 456 console.log(a.news) //删除 delete a['news'] console.log(a)