티스토리 뷰

jQuery를 적용하는 방법은 두가지가 있습니다.

파일을 다운로드하여 적용하는 방법,

직접 CDN방식으로 적용하는 방법.

 

 

 

이번 포스팅에서는 파일을 다운로드하여 적용하는 방법에 대해 알아보겠습니다.

 

 

 

jquery.com/download/

 

Download jQuery | jQuery

link Downloading jQuery Compressed and uncompressed copies of jQuery files are available. The uncompressed file is best used during development or debugging; the compressed file saves bandwidth and improves performance in production. You can also download

jquery.com

 

먼저 홈페이지 다운로드 탭에 가서

최신 버전의 Download the compressed, production jQuery 3.6.0 을 다른이름으로 링크 저장 해줍니다.

원하는 위치에 저장 후

 

 

 

 

 

저는 이런식으로 파일을 복사 붙여넣기 해주었습니다. (Spring)

html 파일과 같은 위치에 있기 때문에

html 파일 안에 

 

<script src="jquery-3.6.0.min.js"></script>

 

이렇게 파일명만 적어주어도 됩니다.

(다른 폴더에 저장하신 분은 "폴더명/파일명"이런식으로 해주시면 됩니다)

 

 

 

 

 

공지사항
최근에 올라온 글