$.ajax({
url : controllerUri,
type:'POST',
async:false,
data:{
"itemids" : id_arry,
"clock" : params[0].name
},
success : function(data){
var result = data.data.logVo;
for(var i in result){
var map = result[i];
if(i==0){
var num = map['count'];
info = '异常总数 : ' + num + '</br>';
}else{
for (var key in map) { //for in 遍历获得key
info += key + ':' + map[key] + ' ';//直接获取value
}
info += '</br>';
}
}
}
});
url : controllerUri,
type:'POST',
async:false,
data:{
"itemids" : id_arry,
"clock" : params[0].name
},
success : function(data){
var result = data.data.logVo;
for(var i in result){
var map = result[i];
if(i==0){
var num = map['count'];
info = '异常总数 : ' + num + '</br>';
}else{
for (var key in map) { //for in 遍历获得key
info += key + ':' + map[key] + ' ';//直接获取value
}
info += '</br>';
}
}
}
});