Language/Springboot

[Stringboot] 제이쿼리(jQuery) 적용하기

rame 2022. 8. 28. 01:06


1. 제이쿼리 다운로드

2. html 코드 추가


 

 

1. 제이쿼리 다운로드

 링크 : https://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

 

 - compressed production jQuery 3.6.1 (제일 최신 버전) 클릭

 

 - 이런 화면이 나와도 당황하지 않고 우클릭 후 '다른 이름으로 저장' 해준다

 

 

 - static 에 lib 폴더를 만들어 넣어줌

 

 

2. html 파일 코드 추가

 - jQuery를 사용할 파일에 추가해준다

<script layout:fragment="script" type="text/javascript" src="/lib/jquery-3.6.1.min.js"></script>