`

IE8 不识别json对象

 
阅读更多

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

解决办法:

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

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics