Develop/Javascript
[jQuery] Ajax JSON POST in HTTP Body
RianShin
2020. 11. 3. 12:07
728x90
반응형
SMALL
$.ajax({
url: ".../api/test",
type: "post",
accept: "application/json",
contentType: "application/json; charset=utf-8",
data: JSON.stringify(param),
dataType: "json",
success: function(data) {
// success handle
},
error: function(jqXHR, textStatus, errorThrown) {
// fail handle
}
});
728x90
반응형
LIST