jQuery 版本 2 以上不支持 IE6,7,8 浏览器.
如果需要支持 IE6/7/8, 那么请选择 1.9
你还可以通过条件注释在使用 IE6/7/8 时只包含进 1.9.
- <!--[if lt IE 9]>
- <script src="jquery-1.9.0.js"></script>
- <![endif]-->
- <!--[if gte IE 9]><!-->
- <script src="jquery-2.0.0.js"></script>
- <!--<![endif]-->
更多 web 前端开发 https://www.html.cn/ 知识, 请查阅 HTML 中文网 !!
来源: http://www.css88.com/qa/jquery/17556.html