demo/api.php data
{
"list":[{
"ddd":"122",
"ggg":"122"
}]
}
the above connected data is generally fine in the following way
$.ajax({
url:"demo/api.php",
type:"POST",
dataType:"json",
success:function(data){
if(data){
var shuju=data["list"],//
};
},
})
how do I get objects if there are objects in the data structure? The structure is as follows
{
data:{
"name":{
"ddd": "97504",
"ggg": "39",
"mmm": "555",
},
"list":[{
"showInfo": "97504",
"type":{
"pic":"img.jpg",
"id":"8749"
}
}]
}
}
$.ajax({
url:"demo/api.php",
type:"POST",
dataType:"json",
success:function(data){
if(data){
var shuju=,//"list":[{}]
};
},
})
I don"t know if the bosses can understand what I mean, and I don"t know if the object in the object I call it is correct. Would you please correct it?