如下所示:
$.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;
}
});