如下所示:
$.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内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复