English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
As shown below:
$.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; } });
That's all the implementation of the jQuery AJAX return list for the back-end and the front-end jQuery traversal of the list that the editor has brought to you. I hope everyone will support and cheer for the Yell Tutorial~