IE8 不判别json对象

IE8 不识别json对象JSON.parse在IE8中包错: JSON is not defined解决办法:??? 报错代码: JSON.parse(resp.

IE8 不识别json对象

JSON.parse在IE8中包错: JSON is not defined

解决办法:

??? 报错代码: JSON.parse(resp.responseText);

????改成: var obj= eval("("+resp.responseText+")"); 即可