jQuery/jQuery 기본

제이쿼리 html에서 CDN 호스트 방식으로 연결하기

hyojinny 2022. 12. 29. 20:07

 

jQuery 라이브러리 - P.196

다운로드 방식

  1. http://jquery.com/download사이트방문
  2. 최신 버전 다운로드 하여 head 영역 안에 연결
  3. Migrate Plugin(하위 버전 브라우저 지원) 다운로드하여 head 영역 안에 연결 - 익스플로를 위한 설정

CDN 호스트 방식 - content delivery Network

  1. https://code.jquery.com사이트방문
  2. 최신 버전을 클릭하여 url 복사, head 영역 안에 붙여넣기
  3. jQuery Migrate를 클릭하여 url을 복사, head영역 안에 붙여넣기 - 익스플로러를 위한 설정

 

 

CDN 호스트 방식이 최신버전으로 자동 업데이트가 되며 오류가 적다


https://releases.jquery.com/

 

jQuery CDN

The integrity and crossorigin attributes are used for Subresource Integrity (SRI) checking. This allows browsers to ensure that resources hosted on third-party servers have not been tampered with. Use of SRI is recommended as a best-practice, whenever libr

releases.jquery.com

 

 

 

 

스크립트 코드 복사후 

html head 역영에 붙여넣기