从服务器端返回的json如下:
{"idcNodeList":[
{"nodeType":0,"nodeName":"测试节点1","nodeId":"BG1f3KrE-oKI0XSQI~~~","createTime":"2015-07-21 14:39:58.000+0800","updateTime":"2015-07-21 14:39:58.000+0800","changeTime":"2015-07-21 16:01:33.000+0800","nodeStatus":1,"nodeIp":"192.168.200.75","nodePort":8099},
{"nodeType":0,"nodeName":"测试节点3","nodeId":"BGgDnlnZ7hINQiSpc~~","createTime":"2015-07-21 14:39:58.000+0800","updateTime":"2015-07-21 14:39:58.000+0800","changeTime":"2015-07-21 16:01:34.000+0800","nodeStatus":1,"nodeIp":"192.168.200.246","nodePort":9012}]}
success: function(data) {
var obj = eval("("+data+")");
for(var i = 0 ; i < obj["idcNodeList"].length; i++) {
var temNodeId = escapeJquery(obj["idcNodeList"][i]["nodeId"]);
$("#"+temNodeId).html( (obj["idcNodeList"][i]["nodeStatus"] ));
}
}
{
"result": [{
"data": [{"id": 61,"parentId": ""}],
"colSource": 0,
"colSql": "select id,platform as name,'' as parentId from pi_om_platform",
"colType": 0,
"colId": "1",
"colName": "平台",
"colOrder": 1,
"colShow": 0,
"colActive": 0
}]
}
success: function(data) {
alert( data.result[0].data[0].id);
}