当前位置:编程学习 > JAVA >>

jquery ajax 迭代list

$.ajax({ 
        type: 'post', 
        url: "maintain_findRoomByBuildingId.shtml", 
        cache: false, 
        data: {"buildingId":buildingId}, 
        dataType: 'json', 
        success: function(data){ 
            jQuery.each(data.roomList, function(i,item){ 
                alert(item.id+","+item.name); 
            }); 
        }, 
        error: function(){ 
            return; 
        } 
    });

补充:软件开发 , Java ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,