English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
como mostrado a seguir:
$.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; } });
Isso é tudo que o editor trouxe para você sobre a implementação completa de jQuery AJAX para retornar list, e o usuário final usa jQuery para percorrer a lista. Espero que você apóie e grita tutorial~