欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jquery ajax后臺(tái)返回list,前臺(tái)用jquery遍歷list的實(shí)現(xiàn)

 更新時(shí)間:2016年10月30日 10:56:51   投稿:jingxian  
下面小編就為大家?guī)?lái)一篇jquery ajax后臺(tái)返回list,前臺(tái)用jquery遍歷list的實(shí)現(xiàn)。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧

如下所示:

$.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;  
    }  
  }); 

以上就是小編為大家?guī)?lái)的jquery ajax后臺(tái)返回list,前臺(tái)用jquery遍歷list的實(shí)現(xiàn)全部?jī)?nèi)容了,希望大家多多支持腳本之家~

相關(guān)文章

最新評(píng)論