永发信息网

jquery中的$ready不兼容IE浏览器怎么办

答案:2  悬赏:80  手机版
解决时间 2021-03-23 21:40
  • 提问者网友:咪咪
  • 2021-03-23 05:53
jquery中的$ready不兼容IE浏览器怎么办
最佳答案
  • 五星知识达人网友:逐風
  • 2021-03-23 06:33
jQuery新版本已经不再进行IE低版本(IE6、IE7、IE8)的兼容性处理。

如果项目需要兼容IE低版本,需要使用jQuery1.x版本,从2.x开始已经不兼容IE6、7、8了。
以下为jQuery官网的通知:
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 Guide apply 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 2.x和jQuery的API用法相同,但是不再支持IE6、7、8。
1.9版本中的所有升级向导信息同样适用于2.x
由于IE8仍然用户较多,因此建议使用1.x版本,除非确定没有用IE6、7、8的用户访问网站。
请仔细阅读2.0的发布信息。
全部回答
  • 1楼网友:一秋
  • 2021-03-23 06:55
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯