IE6上的JSON(IE7) [英] JSON on IE6 (IE7)

查看:157
本文介绍了IE6上的JSON(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上的JSON(IE7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆