如下所示:
$.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; } }); 以上就是小編為大家帶來的jquery ajax后臺返回list,前臺用jquery遍歷list的實現全部內容了,希望大家多多支持武林網~
新聞熱點
疑難解答