JSON.stringify和JSON.parse在IE9中不起作用? [英] JSON.stringify and JSON.parse not working in IE9?

查看:975
本文介绍了JSON.stringify和JSON.parse在IE9中不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在任何地方都使用 JSON.Stringify JSON.parse ,它适用于Firefox。它不再适用于IE9,也不适用于IE8。我该怎么办?

I'm using JSON.Stringify and JSON.parse everywhere and it works fine with Firefox. It's working no more with IE9 nor does it work in IE8. What can I do?

推荐答案

为什么要依赖具有该对象的浏览器而不是只包含Douglas的脚本文件Crockford ..你可以在这里找到minifed文件: http://www.json.org/js.html

why do you want to depend on the browser having the object instead just include the script file by Douglas Crockford.. You can find the minifed file here: http://www.json.org/js.html

导入后,您不必担心浏览器中存在的方法。

Once imported you dont have to worry abt the method existing in a browser.

这篇关于JSON.stringify和JSON.parse在IE9中不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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