我有个json对象不知道怎么遍历出来
jquery吧
全部回复
仅看楼主
level 1
ak2405627
楼主
、这是json格式
我想id输出id name输出name
不知道怎么使用each
2015年08月11日 08点08分
1
level 5
蚜虫一族
$.get(url,function(obj){alert(obj.list)},'json')
2015年08月13日 15点08分
2
level 1
ywhyanwenhui
$(jsondata).each(function(){
alert("我叫"+this.name+",我的ID是"+this.id);
});
2015年08月14日 03点08分
3
ak2405627
这效果是遍历吗?
2015年08月14日 06点08分
ywhyanwenhui
@ak2405627
是啊 你试一下不就知道了
2015年08月14日 06点08分
可愿法爱走酷2E
2015年08月14日 09点08分
1