【发布时间】:2013-03-27 11:55:17
【问题描述】:
我有一个类似的json格式
[
{
id: 15,
diemdung: "a"
},
{
id: "16",
diemdung: "b",
khoangcach: "300",
pho: "c",
da: [
{
lancan: "d",
kc: "333"
},
{
lancan: "e",
kc: "322"
}
]
},
...
]
我使用像print json_encode($rows);这样的php
我尝试在客户端使用 jquery 来阅读它
$.getJSON(url,function(json){
$.each(json,function(key, val){
$.each(this.da,function(){
alert(this.kc);
});
});
});
但它不起作用。我该怎么做?谢谢
【问题讨论】: