与 IE8 一起使用的最新 jQuery 版本是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22073479/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the latest jQuery version to work with IE8?
提问by Alexander Rechsteiner
I'm working on a Bootstrap 3 site and I was having some issues with the jQuery version that I was using (1.9.1). I upgraded to 2.1.0 and my issues are gone, however, this breaks IE8 compatibility since 2.1.0 doesn't support IE8 anymore and jQuery seizes to work in this browser.
我正在一个 Bootstrap 3 站点上工作,我在使用 jQuery 版本 (1.9.1) 时遇到了一些问题。我升级到 2.1.0 并且我的问题消失了,但是,这破坏了 IE8 的兼容性,因为 2.1.0 不再支持 IE8 并且 jQuery 可以在这个浏览器中工作。
I can't use 1.1.0 because Bootstrap supports 1.9.0 or higher(also I'll have my issues back).
我不能使用 1.1.0,因为 Bootstrap 支持1.9.0 或更高版本(我也会解决我的问题)。
So the question is: Which is the highest version of jQuery that works with IE8?
那么问题来了: IE8 最高版本的 jQuery 是哪个?
The jQuery Browser Support Pageonly lists 1.11.0 and 1.9.1 so that's not helping.
在jQuery的浏览器支持页面只列出1.11.0和1.10.1所以这不是帮助。
回答by jwal
IE8 support was dropped in jQuery 2.x, so you will want any version beginning with 1 that satisfies your plugin's version dependencies.
jQuery 2.x 中删除了对 IE8 的支持,因此您需要任何以 1 开头的版本满足您的插件的版本依赖性。
I would try the latest 1.11 or 1.10 first. 1.11 was released in early 2014. 1.10 was released mid-2013.
我会先尝试最新的 1.11 或 1.10。1.11 于 2014 年初发布。1.10 于 2013 年年中发布。
There may be some confusion with comparing minor version numbers. 1.11 > 1.10 > 1.9. We're comparing the second number as a number. Don't make the mistake of treating each digit as a value to compare.
比较次要版本号可能会有些混淆。1.11 > 1.10 > 1.9。我们将第二个数字作为一个数字进行比较。不要错误地将每个数字视为要比较的值。
- See also http://blog.jquery.com/2013/04/18/jquery-2-0-released/
- All jQuery versions: http://code.jquery.com/jquery/
- 另见http://blog.jquery.com/2013/04/18/jquery-2-0-released/
- 所有 jQuery 版本:http: //code.jquery.com/jquery/
Update: latest version compatible with IE8 is now 1.11.3 http://blog.jquery.com/2015/04/28/jquery-1-11-3-and-2-1-4-released-ios-fail-safe-edition/
更新:与 IE8 兼容的最新版本现在是 1.11.3 http://blog.jquery.com/2015/04/28/jquery-1-11-3-and-2-1-4-released-ios-fail-安全版/