<script>
//声明JSON对象
//{key:value}{键:值}
//在js中key的引号可以省略
var ming={
"name":"ming",
"sex":"女",
"age":18
}
var chen={
name:"chen",
age:18,
sex:"男"
}
//读取Json的值
console.log(ming.name)
console.log(chen)
//给对象添加属性
ming.skill="js"
console.log(ming)
</script>