programing

jQuery 버전 1, 버전 2, 버전 3의 차이점은 무엇입니까?

javajsp 2023. 8. 17. 20:47

jQuery 버전 1, 버전 2, 버전 3의 차이점은 무엇입니까?

최근에 우연히 한 페이지를 발견했습니다.webchart.js2를 사용하여 하고, 저는 1j를 사용하고 .Query 버전 2를 사용하여 디자인하고, 저는 jQuery 버전 1을 사용하고 있습니다.

코드가 작동하려면 최신 버전을 사용하도록 확인한 다음 jQuery 코어 지원을 확인했는데 jQuery 3이 릴리스되었습니다.

저는 지금 버전 3을 사용할 생각인데, 버전 3이 호환성 문제가 있는지, 특정 기기에서만 사용할 수 있는지 알아보고 있습니다.

주요 버전

버전 1.0: 최초의 안정적인 릴리스.
2 및 » 2.0: IE 6-8 »
버전 3.0: 지연에 대한 약속/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                                                                    |
| 3.5            | April 10, 2020     | 3.5.1 (May 4, 2020)        | 87.4           | Security fixes, .even() & .odd() methods, jQuery.trim deprecated                      |
| 3.6            | March 2, 2021      | 3.6.0 (March 2, 2021)      | 90.0           | Bug fixes, return JSON when there is a JSONP error                                    |
+----------------+--------------------+----------------------------+----------------+---------------------------------------------------------------------------------------+

참조: https://en.wikipedia.org/wiki/JQuery#Release_history

주요 버전에 대한 자세한 설명

버전 1.0은 jQuery의 첫 번째 안정적인 릴리스였습니다.이 릴리스는 해당 개발자가 더 이상 지원하지 않는 이전 웹 브라우저를 지원합니다.오래된 웹 브라우저를 사용하여 많은 방문자가 방문할 것으로 예상되는 경우, 이 버전이 확실히 적합한 버전입니다.

버전 2.0은 jQuery의 전반적인 성능을 높이고 라이브러리의 파일 크기를 줄이기 위해 Internet Explorer 6-8에 대한 지원을 중단했습니다.간단히 말하면,버전 2.0은 버전 1.0보다 파일 크기가 빠르고 작지만 더 오래된 웹 브라우저를 지원하지 않습니다.Microsoft에서 Windows XP 지원을 중단했으므로 방문자가 버전 2.0과 호환되는 브라우저를 사용할 것이라고 가정하는 것이 안전합니다(버전 1.0 참조).

버전 3.0의 릴리스에서는 버전 1.11.1과 2.1.1이 모두 jQueryCompat 3.0과 jQueryCompat 3.0으로 업그레이드됩니다. jQueryCompat 3.0은 Internet Explorer 8과 같은 이전 브라우저를 계속 지원하는 반면 일반 버전 3.0은 일반 브라우저(특정 브라우저의 현재 및 이전 버전)만 지원합니다.

버전 3.0 릴리스에서는 버전 1.0 또는 2.0을 고수할 필요가 없습니다.공식 jQuery 블로그의 몇 가지 참고 사항:

  • IE8, Opera 12, Safari 5 등을 포함한 다양한 브라우저에 대한 지원이 필요한 경우 jQuery-Compat 3.0.0 패키지를 사용합니다.이 버전은 모든 웹 사이트 방문자에게 최상의 호환성을 제공하므로 대부분의 웹 사이트에 권장합니다.
  • 웹 사이트가 일반 최신 브라우저 전용으로 구축되었거나 사용 중인 브라우저 엔진을 알고 있는 웹 보기(예: PhoneGap 또는 Cordova)에 포함된 HTML 기반 앱인 경우 jQuery 3.0.0 패키지로 이동합니다.
  • 달리 발표하기 전까지는 두 패키지 모두 해당 번호의 메이저 버전과 마이너 버전에서 동일한 공개 API를 포함합니다.이를 통해 개발자들은 쉽게 둘 사이를 전환할 수 있고 타사 jQuery 플러그인과 최대 호환성을 확보할 수 있습니다.

참조: https://blog.jquery.com/2014/10/29/jquery-3-0-the-next-generations/

언급URL : https://stackoverflow.com/questions/41605120/what-is-the-difference-between-jquery-version-1-version-2-and-version-3