时间:2017-08-30 来源:风信官网 点击: 1303次
$.ajax({
url: '/ajax/getFloorManageByBuildingManageID',
type: 'post',
Data: {"building.id": id},
dataType: 'json',
success: function(data){
$('#floorManagerList').text(''); //将楼层内容清空
var floor = "";
var obj = json.pares(data);
for(var i=0; i<data.length; i++){
floor += "<li class='bed-on'><div class='col-sm-8 pd-left'>"+obj[i].floorname+"</div>"+
"<div class='col-sm-4 bed-edit'><a data-toggle='modal' data-target='#myModal'>"+
"<i class='icon inconfont'></i></a>"+
"<a><i class='icon iconfont'></i></a>"+
"</div>"+
"</li>";
}
$('#floorManagerList').html(floor);
}
});