"일꾼이 일을 잘하려면 먼저 도구를 갈고 닦아야 한다." - 공자, 『논어』.
첫 장 > 프로그램 작성 > How to Retrieve the Latest jQuery Library from Google APIs?

How to Retrieve the Latest jQuery Library from Google APIs?

2024년 12월 24일에 게시됨
검색:736

How to Retrieve the Latest jQuery Library from Google APIs?

Retrieving the Latest jQuery Library from Google APIs

The provided jQuery URL in the question is for version 1.2.6. For retrieving the latest version, there was previously an alternative to using a specific version number, which was to use the following syntax:

<pre>http://ajax.googleapis.com/ajax/libs/jquery/latest/jquery.js</pre>

However, up until jQuery 1.11.1, there were several alternative URLs for obtaining the latest version:

  • https://code.jquery.com/jquery-latest.min.js (jQuery hosted, minified)
  • https://code.jquery.com/jquery-latest.js (jQuery hosted, uncompressed)
  • https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js (Google hosted, minified)
  • https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js (Google hosted, uncompressed)

After jQuery 1.11.1, both jQuery and Google discontinued updating these URLs, resulting in them being permanently fixed at version 1.11.1. Consequently, there is no longer a supported alternative URL for retrieving the latest jQuery version. For further clarification, please refer to this blog post: https://blog.jquery.com/2014/04/22/dont-use-jquery-latest-js/.

While these legacy URLs still remain in use, it is recommended to use a specific version number in your jQuery links for more predictable and dependable results.

릴리스 선언문 이 글은 1729521558에서 재인쇄되었습니다. 침해 내용이 있는 경우, [email protected]으로 연락하여 삭제하시기 바랍니다.
최신 튜토리얼 더>

부인 성명: 제공된 모든 리소스는 부분적으로 인터넷에서 가져온 것입니다. 귀하의 저작권이나 기타 권리 및 이익이 침해된 경우 자세한 이유를 설명하고 저작권 또는 권리 및 이익에 대한 증거를 제공한 후 이메일([email protected])로 보내주십시오. 최대한 빨리 처리해 드리겠습니다.

Copyright© 2022 湘ICP备2022001581号-3