[Ajax] 기본적인 Ajax 사용하기 (jQuery ajax documentation)
Ajax $.ajax({ url : "/save.do", // settings async : false, type : "POST", dataType : "json", contentType: "application/json", data : JSON.stringify(formObject()) }) .done(function() { alert("저장하였습니다."); location.href = "/list.do"; }) type : default get HTTP method url : 요청이 전송되는 URL async : default true 기본적으로 모든 요청은 비동기적으로 전송 동기 요청이 필요한 경우 false dataType : xml, html, script, json, jsonp, text pr..
Web
2021. 10. 7. 21:35