Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 파이썬
- JPA
- with recursive
- java 기술면접
- spring oauth
- 백준 15685
- springboot
- 백준 파이썬
- spring cloud
- 백준 17626
- 프로래머스
- MySQL
- MSA
- 백준 17779
- Spring Boot
- JVM
- spring security
- sql 기술면접
- Kotlin
- 프로그래머스
- 백준
- re.split
- 백준 16236
- Spring
- 백준 19238
- 백준 16235
- Coroutine
- 백준 16719
- java
- 웹어플리케이션 서버
Archives
- Today
- Total
시작이 반
Thymeleaf 자바스크립트 함수 사용 본문
SMALL
<button th:onclick="|index.replyDelete(${board.id},${reply.id})|" class="badge">삭제</button>
let index = {
replyDelete: function (boardId, replyId) {
$.ajax({
type: "DELETE",
url: `/api/board/${boardId}/reply/${replyId}`,
dataType: "json"
}).done(function (response) {
location.reload();
alert("댓글삭제 완료");
}).fail(function (error) {
alert(JSON.stringify(error));
});
}
}
LIST
'Programming > Spring' 카테고리의 다른 글
[Spring] dependencies (mysql, lombok, data-jpa) (0) | 2021.02.24 |
---|---|
Thymeleaf application.properties 값 조회 (0) | 2021.02.22 |
[Spring] 스프링 시큐리티 Authentication 바꿔주기 (0) | 2021.02.17 |
[Spring] 2. Oauth 2.0 카카오 로그인 구현 (0) | 2021.02.17 |
[Spring] 1. Oauth 2.0 카카오 로그인 세팅 (0) | 2021.02.17 |