//单条
var cheng = {
"name":"zhangsan",
"age":18,
"sex":"男",
"like":true
}
//键的双引号可以省略
//多个 “ [] ”
var myfamily = [
{
relation:"dady",
like:"唱歌",
location:"广东"
},{
relation:"mom",
like:"看剧",
location:"江西"
},{
relation:"my",
like:"timi",
location:"湖北"
}
]
/* 1.读取对象的属性 */
/* .表示的意思 */
console.log(li.name)
console.log(li.age)
/* 2.给对象添加属性 */
li.sex = "女";
console.log(li)