// 메모를 삭제합니다.
function deleteOne(id) {
// 1. DELETE /api/memos/{id} 에 요청해서 메모를 삭제합니다.
function deleteOne(id) {
$.ajax({
type: "DELETE",
url: `/api/memos/${id}`,
success: function (response) {
alert('메시지 삭제에 성공하였습니다.');
window.location.reload();
}
})
}
}
'타임라인 만들기 Project' 카테고리의 다른 글
조회시간을 24시간 이내로 한정하기 (0) | 2020.12.01 |
---|---|
submitEdit - 메모 수정하기 (0) | 2020.11.30 |
getMessage - 메모 조회하기 (0) | 2020.11.24 |
writePost - 메모 생성하기 (0) | 2020.11.22 |
HTML, CSS (0) | 2020.11.22 |