“JSON”是在IE中未定义的错误只 [英] 'JSON' is undefined error in IE only
本文介绍了“JSON”是在IE中未定义的错误只的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在做一个AJAX调用WCF服务,当我通过我的数据我使用JSON.stringify()
I'm making an AJAX call to a WCF service and when I pass in my data i use JSON.stringify()
该调用返回和FF,与放大器工作正常; Chrome浏览器,但不是IE8。我得到一个错误:JSON未定义
The call returns and works fine in FF, & Chrome, but not IE8. I get an error: 'JSON' is undefined
建议?
P.S。我也希望这在IE7中工作
p.s. I also want this to work in IE7
推荐答案
使用json2了一致的跨浏览器的实现。
Use json2 for a consistent cross browser implementation.
<一个href="https://github.com/douglascrockford/JSON-js">https://github.com/douglascrockford/JSON-js
这篇关于“JSON”是在IE中未定义的错误只的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文