-
方法1:
-
var siteMap = eval(data.siteMap);
-
for(var j=0;j<siteMap.length;j++)
-
{
-
var newsiteMap = siteMap[j];
-
for ( var key in newsiteMap )
-
{
-
var unitName = newsiteMap[key].unitName;
-
var terminalName = newsiteMap[key].terminalName;
-
var isMute = newsiteMap[key].siteStatus.isMute;
-
var isQuiet = newsiteMap[key].siteStatus.isQuiet;
-
var siteStatus = newsiteMap[key].siteStatus.status;
-
var ip = newsiteMap[key].ip;
-
-
}
-
}
-
方法2:
-
var siteMap = eval(data.siteMap);
-
for(var j=0;j<siteMap.length;j++)
-
{
-
$.each(siteMap[j],function(key,value)
-
{
-
alert(key);
-
alert(value);
-
});
-
}
-
装载自:https://www.cnblogs.com/jcfxl/p/5734064.html