💎Ajax 오류 - Request with GET/HEAD method cannot have body 오류에도 나와있듯이 get방식은 ↓ 형태의 모양으로 데이터를 보낼수없어서 오류가난거였다.. fetch("/Administrator/declaration/pesitter",{ method :"get", headers : {"Content-Type" : "application/json"}, body : petsitterNo }) .then(resp => resp.text()) .then(result =>{ if(result >0){ alert("성공") }else{ alert("실패"); } }) get방식은 데이터를 보낼때 쿼리스트링 형식으로 보내야한다 ↓ 형태의 모양 fetch("/comment?boar..
Ajax
💎 Failed to load resource: the server responded with a status of 415 () function deleteList(e){ if( confirm("펫시터자격을 정말 없애시겠습니까?")){ console.log(e.value); fetch("/Administrator/petManagement/delete",{ method : "put", header : {"Content-Type" : "application/json"}, body : JSON.stringify({petNo : e.value}) }) .then( resp => resp.text()) .then(result =>{ if(result >0){ alert("탈퇴") location.href =loc..