programing tip

jquery 버전 1, 버전 2 및 버전 3 버전 릴리스와의 차이점은 무엇입니까?

itbloger 2020. 8. 25. 07:46
반응형

jquery 버전 1, 버전 2 및 버전 3 버전 릴리스와의 차이점은 무엇입니까? [닫은]


최근에 webchart.jsjQuery 버전 2를 사용 하는 페이지 디자인을 우연히 발견 했으며 jQuery 버전 1을 사용하고 있습니다.

코드가 작동하려면 지금 최신 버전을 사용하도록 확인한 다음 jQuery 코어 지원을 확인했으며 jQuery 3이 출시되었습니다.

현재 버전 3을 사용할 생각이지만 버전 3에 호환성 문제가 있는지 특정 기기에서만 사용할 수 있는지 찾고 있습니다.


주요 버전

버전 1.0 : 첫 번째 안정 릴리스.
버전 2.0 : 성능 향상 및 파일 크기 감소를위한 IE 6–8 지원 중단
버전 3.0 : Deferreds에 대한 Promises / A + 지원 $.ajax$.when, .data()HTML5 호환

모든 버전

+----------------+--------------------+----------------------------+----------------+---------------------------------------------------------------------------------------+
| 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의 첫 번째 안정 릴리스였습니다. 이 릴리스는 해당 개발자가 더 이상 지원하지 않는 이전 웹 브라우저를 지원합니다. 오래된 웹 브라우저를 사용하는 방문자가 많을 것으로 예상되는 경우이 버전이 확실히 적합합니다.

버전 2.0은 Internet Explorer 6-8에 대한 지원을 중단하여 jQuery의 전체 성능을 높이고 라이브러리의 파일 크기를 줄였습니다. 간단히 말해서 버전 2.0은 버전 1.0보다 파일 크기가 더 빠르고 작지만 더 이상 이전 웹 브라우저를 지원하지 않습니다. 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은 상시 브라우저 (특정 브라우저의 현재 및 이전 버전) 만 지원합니다.

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/

참고URL : https://stackoverflow.com/questions/41605120/what-is-the-difference-with-jquery-version-1-version-2-and-version-3-versions-r

반응형