所有版本 +----------------+--------------------+----------------------------+----------------+---------------------------------------------------------------------------------------+| Version Number | Release Date | Latest Update | Size Prod (KB) | Additional Notes |+----------------+--------------------+----------------------------+----------------+---------------------------------------------------------------------------------------+| 1.0 | August 26, 2006 | | | First stable release || 1.1 | January 14, 2007 | | | || 1.2 | September 10, 2007 | 1.2.6 | 54 | || 1.3 | January 14, 2009 | 1.3.2 | 55.9 | Sizzle Selector Engine introduced into core || 1.4 | January 14, 2010 | 1.4.4 | 76 | || 1.5 | January 31, 2011 | 1.5.2 | 83 | Deferred callback management, ajax module rewrite || 1.6 | May 3, 2011 | 1.6.4 | 89 | Significant performance improvements to the attr() and val() functions || 1.7 | November 3, 2011 | 1.7.2 (March 21, 2012) | 92 | New Event APIs: .on() and .off(), while the old APIs are still supported. || 1.8 | August 9, 2012 | 1.8.3 (November 13, 2012) | 91.4 | Sizzle Selector Engine rewritten, improved animations and $(html, props) flexibility. || 1.9 | January 15, 2013 | 1.9.1 (February 4, 2013) | 90 | Removal of deprecated interfaces and code cleanup || 1.10 | May 24, 2013 | 1.10.2 (July 3, 2013) | 91 | Incorporated bug fixes and differences reported from both the 1.9 and 2.0 beta cycles || 1.11 | January 24, 2014 | 1.11.3 (April 28, 2015) | 95.9 | || 1.12 | January 8, 2016 | 1.12.4 (May 20, 2016) | 95 | || 2.0 | April 18, 2013 | 2.0.3 (July 3, 2013) | 81.1 | Dropped IE 6–8 support for performance improvements and reduction in filesize || 2.1 | January 24, 2014 | 2.1.4 (April 28, 2015) | 82.4 | || 2.2 | January 8, 2016 | 2.2.4 (May 20, 2016) | 85.6 | || 3.0 | June 9, 2016 | 3.0.0 (June 9, 2016) | 86.3 | Promises/A+ support for Deferreds, $.ajax and $.when, .data() HTML5-compatible || 3.1 | July 7, 2016 | 3.1.1 (September 23, 2016) | 86.3 | jQuery.readyException added, ready handler errors are now not silenced || 3.2 | March 16, 2017 | 3.2.1 (March 20, 2017) | 84.6 | Hotfixes for regressions that were introduced in the 3.2.0 || 3.3 | January 19, 2018 | 3.3.1 (January 20, 2018) | 84.8 | Deprecation of old function calls, functions that accept classes now support them || | | | | defined in an array || 3.4 | April 10, 2019 | 3.4.1 (May 1, 2019) | 86.1 | Performance improvements, nonce and nomodule support, fixes for radio elements, a || | | | | minor security fix |+----------------+--------------------+----------------------------+----------------+---------------------------------------------------------------------------------------+参考: https://en.wikipedia.org/wiki/JQuery#Release_history 主要版本的详细说明 1.0版是jQuery的第一个稳定版本.此版本支持旧的Web浏览器,它们各自的开发人员甚至不再支持.如果您希望使用旧版Web浏览器的访问者数量众多,那么绝对可以选择该版本. Versions 2.0放弃了对Internet Explorer 6-8的支持,以提高jQuery的整体性能并减小库的文件大小.简而言之:2.0版在文件大小上比1.0版更快,更小,但不再支持较旧的Web浏览器.由于Microsoft放弃了对Windows XP的支持,因此可以合理地假设您的访问者将使用与2.0版兼容的浏览器,除非您事先不知道这种情况(请参阅1.0版).随着版本3.0的发布,版本1.11.1和2.1.1都将升级到jQuery Compat 3.0和jQuery 3.0. jQuery Compat 3.0仍将支持较旧的浏览器,例如Internet Explorer 8,而常规版本3.0将仅支持常绿浏览器(特定浏览器的当前和先前版本).随着版本3.0的发布,没有理由坚持使用版本1.0或2.0.官方jQuery博客的几点说明: 如果您需要对包括IE8在内的各种浏览器的支持, Opera 12,Safari 5等使用jQuery-Compat 3.0.0程序包. 我们建议大多数网站使用此版本,因为它提供了 所有网站访问者的最佳兼容性. 如果您的网站仅针对常绿的前沿浏览器构建,或者 是Web视图中包含的基于HTML的应用(例如PhoneGap或 Cordova)(您知道正在使用哪些浏览器引擎),请转到 jQuery 3.0.0程序包. 在我们另行声明之前,两个软件包都将包含相同的内容 具有相应编号的主要版本和次要版本的公共API.这 应该使开发人员可以轻松地在两者之间进行切换,并且 与第三方jQuery插件最大程度地兼容.参考: https://blog .jquery.com/2014/10/29/jquery-3-0-the-next-generations/ I recently stumbled upon a page webchart.js design using jQuery version 2, and I am using jQuery version 1.For the code to work see to it to use now the latest version, then I checked jQuery core support and they have jQuery 3 released.I am thinking of using version 3 now, but I am looking for if version 3 has compatibility issues, that it may only be used on specific devices. 解决方案 Major VersionsVersion 1.0: First stable release.Version 2.0: Dropped IE 6–8 support for performance improvements and reduction in filesizeVersion 3.0: Promises/A+ support for Deferreds, $.ajax and $.when, .data() HTML5-compatibleAll Versions+----------------+--------------------+----------------------------+----------------+---------------------------------------------------------------------------------------+| Version Number | Release Date | Latest Update | Size Prod (KB) | Additional Notes |+----------------+--------------------+----------------------------+----------------+---------------------------------------------------------------------------------------+| 1.0 | August 26, 2006 | | | First stable release || 1.1 | January 14, 2007 | | | || 1.2 | September 10, 2007 | 1.2.6 | 54 | || 1.3 | January 14, 2009 | 1.3.2 | 55.9 | Sizzle Selector Engine introduced into core || 1.4 | January 14, 2010 | 1.4.4 | 76 | || 1.5 | January 31, 2011 | 1.5.2 | 83 | Deferred callback management, ajax module rewrite || 1.6 | May 3, 2011 | 1.6.4 | 89 | Significant performance improvements to the attr() and val() functions || 1.7 | November 3, 2011 | 1.7.2 (March 21, 2012) | 92 | New Event APIs: .on() and .off(), while the old APIs are still supported. || 1.8 | August 9, 2012 | 1.8.3 (November 13, 2012) | 91.4 | Sizzle Selector Engine rewritten, improved animations and $(html, props) flexibility. || 1.9 | January 15, 2013 | 1.9.1 (February 4, 2013) | 90 | Removal of deprecated interfaces and code cleanup || 1.10 | May 24, 2013 | 1.10.2 (July 3, 2013) | 91 | Incorporated bug fixes and differences reported from both the 1.9 and 2.0 beta cycles || 1.11 | January 24, 2014 | 1.11.3 (April 28, 2015) | 95.9 | || 1.12 | January 8, 2016 | 1.12.4 (May 20, 2016) | 95 | || 2.0 | April 18, 2013 | 2.0.3 (July 3, 2013) | 81.1 | Dropped IE 6–8 support for performance improvements and reduction in filesize || 2.1 | January 24, 2014 | 2.1.4 (April 28, 2015) | 82.4 | || 2.2 | January 8, 2016 | 2.2.4 (May 20, 2016) | 85.6 | || 3.0 | June 9, 2016 | 3.0.0 (June 9, 2016) | 86.3 | Promises/A+ support for Deferreds, $.ajax and $.when, .data() HTML5-compatible || 3.1 | July 7, 2016 | 3.1.1 (September 23, 2016) | 86.3 | jQuery.readyException added, ready handler errors are now not silenced || 3.2 | March 16, 2017 | 3.2.1 (March 20, 2017) | 84.6 | Hotfixes for regressions that were introduced in the 3.2.0 || 3.3 | January 19, 2018 | 3.3.1 (January 20, 2018) | 84.8 | Deprecation of old function calls, functions that accept classes now support them || | | | | defined in an array || 3.4 | April 10, 2019 | 3.4.1 (May 1, 2019) | 86.1 | Performance improvements, nonce and nomodule support, fixes for radio elements, a || | | | | minor security fix |+----------------+--------------------+----------------------------+----------------+---------------------------------------------------------------------------------------+Reference: https://en.wikipedia.org/wiki/JQuery#Release_historyDetailed Explanation on Major VersionsVersion 1.0 was the first stable release of jQuery. This release supports older web browsers that aren't even supported by their respective developers any longer. If you expect a large amount of visitors with older web browsers, this would definitely be the version to go for.Versions 2.0 dropped support for Internet Explorer 6-8 to increase jQuery's overall performance and reduce the library's filesize. In simple words: Version 2.0 is faster and smaller in filesize than version 1.0, but it no longer supports older web browsers. Since Microsoft dropped the support for Windows XP, it's reasonably safe to assume that your visitors will be using a browser compatibile with version 2.0 unless you know beforehand this won't be the case (see version 1.0).With the release of version 3.0 both versions 1.11.1 and 2.1.1 will be upgraded to jQuery Compat 3.0 and jQuery 3.0. jQuery Compat 3.0 will still support older browsers like Internet Explorer 8 while the regular version 3.0 will only support evergreen browsers (the current and previous versions of a specific browser).With the release of Version 3.0 there's no reason to stick to either version 1.0 or 2.0. A few notes from the official jQuery blog: If you need support for the widest variety of browsers including IE8, Opera 12, Safari 5, and the like, use the jQuery-Compat 3.0.0 package. We recommend this version for most web sites, since it provides the best compatibility for all website visitors. If your web site is built only for evergreen leading-edge browsers, or is an HTML-based app contained in a webview (for example PhoneGap or Cordova) where you know which browser engines are in use, go for the jQuery 3.0.0 package. Until we announce otherwise, both packages will contain the same public APIs in correspondingly-numbered major and minor versions. This should make it easy for developers to switch between the two and be maximally compatible with third-party jQuery plugins.Reference: https://blog.jquery.com/2014/10/29/jquery-3-0-the-next-generations/ 这篇关于与jquery版本1,版本2和版本3版本有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-04 07:11