🏫 Library/🥏 jQuery [jQuery] ajax body에 json 담는 방법 728x90 🔥 TODO 👉 ajax body에 json 담는 방법은? 🧙 Solution 👉 아래에 기술된 코드를 이용하시면 됩니다. crossdomain, accept 등은 옵션입니다. 상황에 따라 제거 또는 냅두셔도 됩니다. var data= { "id":"han", "name" : "hoon" } $.ajax({ type: "POST", crossdomain: true, accept: "application/json", contentType: "application/json; charset=utf-8", url : url, data : JSON.stringify(data), dataType : "json", success : function(data) { console.log('성공 - ', data); }, error : function(e) { console.log('실패 - ', e); } }); 🏆 Result 👉 postman으로 테스트하는 경우, Body에 데이터를 담으시면 됩니다. If I was of any help to you, please buy me coffee 😿😢😥 If you have any questions, please leave them in the comments Buy me a coffee ▶ Youtube Sub 🧭 References [1] reference : https://doctorson0309.tistory.com/ [2] Ads : https://play.google.com/store/apps/details?id=io.cordova.seoulfilter 반응형 공유하기 URL 복사카카오톡 공유페이스북 공유엑스 공유 게시글 관리 구독하기팀드모네 IT Blog 저작자표시 비영리 변경금지 '🏫 Library > 🥏 jQuery' 카테고리의 다른 글 [jQuery] checkbox 체크, 체크여부, 전체체크 방법? (0) 2025.01.21 [jquery] setTimeout을 사용하여 여러 파일 다운로드 하기 (0) 2024.01.30 Contents 🔥TODO 🧙Solution 🏆Result 🧭References 당신이 좋아할만한 콘텐츠 [jQuery] checkbox 체크, 체크여부, 전체체크 방법? 2025.01.21 [jquery] setTimeout을 사용하여 여러 파일 다운로드 하기 2024.01.30 댓글 0 + 이전 댓글 더보기