wujiapeng 发表于 2013-1-29 10:36:25

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;
      }
    });
页: [1]
查看完整版本: jquery ajax 迭代list