IE9:奇怪的Javascript错误 [英] IE9: Weird Javascript error

查看:112
本文介绍了IE9:奇怪的Javascript错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试在我的网站中展示Google DFP广告横幅时收到错误消息。除IE9外,所有浏览器中都会展示广告。您可以在此处查看带有横幅的简单测试页:(离线演示)。错误是抛出异常而未被捕获(google_ads.js,第34行char 474)。

I am getting an error while trying to display Google DFP ad banners in my website. The ads are showing in all browsers except IE9. You can view a simple test page with the banner here: (demo taken offline). The error is "Exception thrown and not caught" (google_ads.js, line 34 char 474).

可以在IE9中查看广告如果我切换到IE7 / 8兼容性视图,那么问题似乎与IE9有关。我不确定这是否仅限于我的电脑,或者这是否是一个普遍的问题。如果是后者,对于任何运行Google广告的人来说,这都是一个非常严重的问题!

I can view the ad in IE9 if I switch to IE7/8 compatibility view, so the problem appears to be with IE9. I am not sure if this is restricted to my computer, or if this is a universal problem. If it's the latter, this is a very serious concern for anybody running Google ads!

您的广告可能没有在任何安装了IE9的新电脑上展示

有人可以看看,并确认这是Google问题,还是我的代码存在问题?

Can somebody please have a look, and confirm if this is a Google issue, or an issue with the my code?

Wild Thing

Wild Thing

推荐答案

我真的找不到永久物解决方案,但如果有人遇到这个问题,你可以添加

I couldn't really find a permanent solution, but if anybody runs across this problem, you can just add

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /> 

强制浏览器模拟IE8文档模式。这似乎也解决了JS错误。

in your header to force your browser to emulate the IE8 document mode. This seems to fix the JS errors as well.

这篇关于IE9:奇怪的Javascript错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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