English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Come mostrato di seguito:
$.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; } });
Questo è tutto il contenuto che l'editor vi ha portato: l'implementazione dell'invio di list back-end jQuery e la traversata della list front-end con jQuery. Spero che vi piaccia e sosteniate la guida di urla~