我有以下代码,它在 IE8 中不起作用(在 Firefox 中完美运行):
response = eval('({"success":true,"statuses":[{"title":"Unknown","code":"UNKNOWN","cssClass":"sys_unknown","id":1}]})');
for (var i in response.statuses) {
status = response.statuses[i];
if (status.id != undefined) {
alert('ID = ' + status.id);
}
}
有人可以告诉你出了什么问题吗?谢谢。