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>
'Language > Springboot' 카테고리의 다른 글
[Springboot] 회원 정보(닉네임) 수정하기 (+추가 기능 구현 중) (0) | 2022.08.31 |
---|---|
[Stringboot] 네이버지도 API에 현재 위치 받아오기 (0) | 2022.08.28 |
[Springboot] 웹에 네이버지도 API 추가하기 (0) | 2022.08.26 |
[Stringboot] 게시글 댓글 페이징 기능 구현하기 (1) | 2022.08.25 |
[Springboot] 게시글 조회수 구현하기 (1) | 2022.08.25 |