ajax请求的数据怎么放在页面中

2024-12-16 11:45:28
推荐回答(1个)
回答1:

var json = [
{"id":1,"age":5},
{"id":2,"age":4},
{"id":3,"age":3},
{"id":4,"age":2},
{"id":5,"age":1}
];
for(var i=0,len=json.length;i $('eml').append(json[i].id)
}