“JSON”未定义“的问题,但在IE没有镀铬 [英] 'JSON' is undefined' issue in IE but not chrome

查看:146
本文介绍了“JSON”未定义“的问题,但在IE没有镀铬的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误,在IE9中,在这里我使用Json.stringify()我的jQuery ajax调用。

I am getting the following error with my jquery ajax call in IE9, where I am using Json.stringify().

微软JScript运行时错误:JSON未定义

Microsoft JScript runtime error: 'JSON' is undefined

同样的功能是为我工作,直到昨天仍然工作在我的同事的机器和铬我的机器上。但没有明显的原因已经停止工作今天我的机器上。

The same function was working for me till yesterday and still works on my colleagues machine and on chrome on my machine. But for no apparent reason has stopped working on my machine today.

您可以请帮我明白了,是什么原因造成的呢?

May you please help me understand, what is causing it?

谢谢!

推荐答案

您需要在您的文档在标准模式呈现。 见这一个<一个href="http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/fc41127c-0243-4d2e-8e7c-2b311f12e390">http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/fc41127c-0243-4d2e-8e7c-2b311f12e390.

You need to have your document is rendered in standards mode. See this one http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/fc41127c-0243-4d2e-8e7c-2b311f12e390.

这篇关于“JSON”未定义“的问题,但在IE没有镀铬的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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