jQuery 不适用于 IE 11 [英] jQuery not working with IE 11

查看:73
本文介绍了jQuery 不适用于 IE 11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对象不支持属性或方法addEventListener"

'jQuery' is undefined 

我使用的是 IE 11,

I'm using IE 11,

/jquery-2.1.1.min.js

/jquery-2.1.1.min.js

jquery-migrate-1.1.1.js

jquery-migrate-1.1.1.js

和jquery-ui-1.11.0.custom/jquery-ui.js(主题滚轮)

and jquery-ui-1.11.0.custom/jquery-ui.js (theme roller)

在 2.1.1 之前,我使用 1.11.1 和 chrome(工作正常)

Before 2.1.1, i was using 1.11.1 with chrome (worked fine)

我已经尝试过这个 修复,但对我不起作用

I have tried this fix but it did not work for me

推荐答案

问题是由于页面是内网站点,&IE 为此将兼容模式设置为默认值.IE11 确实支持 addEventListener()

The problem was caused because the page was an intranet site, & IE had compatibility mode set to default for this. IE11 does support addEventListener()

这篇关于jQuery 不适用于 IE 11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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