我是靠谱客的博主 怕黑鞋子,这篇文章主要介绍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;  
    }  
  }); 

以上就是小编为大家带来的jquery ajax后台返回list,前台用jquery遍历list的实现全部内容了,希望大家多多支持脚本之家~

最后

以上就是怕黑鞋子最近收集整理的关于jquery ajax后台返回list,前台用jquery遍历list的实现的全部内容,更多相关jquery内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(115)

评论列表共有 0 条评论

立即
投稿
返回
顶部