获取json字符串中的数组

result为json结果:

{

name:"",

data:[

{

org_code:"",

org_name:""

},

{

org_code:"",

org_name:""

}

]

}

result.data.forEach(function (a) {

//获取到的a为data数组中的item,可以遍历

})

猜你喜欢

转载自blog.csdn.net/liuna1024/article/details/79544707
今日推荐