jQuery没有使用IE 11 [英] jQuery not working with IE 11

查看:125
本文介绍了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镀铬(工作正常)

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天全站免登陆