IE6 (IE7) 上的 JSON [英] JSON on IE6 (IE7)
问题描述
很抱歉我的不耐烦,但经过数周的熬夜和刚刚将我的网络上线后,我没有任何剩余的精力进行调试......我只是无法谷歌如何在 IE6 上实现 JSON &IE7...我正在使用
Sorry for my inpatience but after weeks staying up late and just having put my web online, I just don't have any left energy to debug... I just can't Google how to implement JSON on IE6 & IE7... I'm using
JSON.stringify(...)
据我所知,JSON 不是内置于 IE6-7 中的,必须在内嵌代码中动态添加...你是怎么做到的?
From what I understand JSON is not built in on IE6-7 and has to be dynamically added in in-line code... how do you do that?
我已经有了 jQuery - 我是否正确理解他们的 JSON 引擎依赖于浏览器原生引擎?
I already have jQuery - is it my correct understanding that their JSON engine relies on the browser native one?
然后一些关于使 IE6-7 失败的无效 JSON 代码的评论,但我认为它不是 IE6-7 中的原生代码?
Then some comment on invalid JSON code that makes IE6-7 fail, but I thought it wasn't native in IE6-7?
有人吗?
推荐答案
由于您要使用 JSON.stringify
方法,因此您需要包含 JSON3 解析器 以便在 IE 上支持它 <8.
Since you want to use the JSON.stringify
method, you will need to include the JSON3 parser in order to support it on IE < 8.
该库符合 ECMAScript 第 5 版规范的标准方法,并检查是否有可用的本机实现,因此在现代浏览器上将使用该本机实现.
This library complies with the standard methods of the ECMAScript 5th Edition specification and it checks if there is a native implementation available, so on modern browser this native implementation will be used.
这篇关于IE6 (IE7) 上的 JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!