当前位置: 代码迷 >> Ajax >> jquery ajax后盾返回list,前台用jquery遍历list
  详细解决方案

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

热度:301   发布时间:2012-09-29 10:30:01.0
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;
		}
	});
?
  相关解决方案