json数据

一、数据格式

var stus={"stu":[
{"id":1,"name":"stu1","age":21},
{"id":2,"name":"stu2","age":22},
{"id":3,"name":"stu3","age":23}
]};

二、数据访问

var data = stus.stu[1].name;

 

posted @ 2019-06-03 15:19  想看云飞却没风~  阅读(149)  评论(0编辑  收藏  举报