对象不支持此属性或方法 ie8

参考自:[url]https://blog.csdn.net/assholeu/article/details/46044383[/url]

写一个项目时 用的jquery.min.js 版本是2.0 发现在ie8上面js脚本的效果出不来,F12调试时,报错 :对象不支持此属性或方法 ,也不识别 $ 也不识别 Jquery 报未定义异常


去 jQuery官网看了一下原来jQuery2.x不支持IE678

jQuery 2.x
jQuery 2.x has the same API as jQuery 1.x, but does not support Internet Explorer 6, 7, or 8. All the notes in the jQuery 1.9 Upgrade Guideapply here as well. Since IE 8 is still relatively common, we recommend using the 1.x version unless you are certain no IE 6/7/8 users are visiting the site. Please read the 2.0 release notes carefully.

jquery官网:浏览器支持
[url]http://jquery.com/browser-support/[/url]
Current Active Support
Desktop
Chrome: (Current - 1) and Current
Edge: (Current - 1) and Current
Firefox: (Current - 1) and Current
Internet Explorer: 9+
Safari: (Current - 1) and Current
Opera: Current
Mobile
Stock browser on Android 4.0+
Safari on iOS 7+
Any problem with jQuery in the above browsers should be reported as a bug in jQuery.

(Current - 1) and Current denotes that we support the current stable version of the browser and the version that preceded it. For example, if the current version of a browser is 24.x, we support the 24.x and 23.x versions.

If you need to support older browsers like Internet Explorer 6-8, Opera 12.1x or Safari 5.1+, use jQuery 1.12.


以上浏览器中jQuery的任何问题都应该作为jQuery bug报告。
(Current - 1)和Current表示我们支持浏览器的当前稳定版本和之前的版本。例如,如果浏览器的当前版本是24。x,我们支持24。x和23。x版本。
如果您需要支持较老的浏览器,如Internet Explorer 6-8、Opera 12.1x或Safari 5.1+,请使用jQuery 1.12。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值