$.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;
}
});
http://www.dengb.com/Javabc/544840.htmlwww.dengb.comtruehttp://www.dengb.com/Javabc/544840.htmlTechArticle$.ajax({ type: post, url: maintain_findRoomByBuildingId.shtml, cache: false, data: {buildingId:buildingId}, dataType: json, success: function(data){ jQuery.each(data.roomList, func...
使用Ajax查询房间信息
本文介绍了一种使用Ajax技术向服务器发送POST请求的方法,通过指定建筑ID来获取对应的房间列表信息,并利用jQuery库遍历查询结果。
805

被折叠的 条评论
为什么被折叠?



