您好,欢迎访问一九零五行业门户网

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; } });
其它类似信息

推荐信息