首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Ajax >

jquery ajax后盾返回list,前台用jquery遍历list

2012-09-29 
jquery ajax后台返回list,前台用jquery遍历list$.ajax({type: post,url: maintain_findRoomByBuildingI

jquery ajax后台返回list,前台用jquery遍历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;}});
?

热点排行