JQuery
ajax 통신할때 기본 문법.
Z700zZz
2015. 2. 10. 16:26
$.ajax({
type : "POST",
url : url,
data : data,
dataType: "json",
contentType: "application/x-www-form-urlencoded; charset=utf-8",
success : function(data) {
console.log(data);
},
complete : function(data) {
console.log(data);
},
error : function(xhr, status, error) {
console.log("에러발생 : " + error);
}
});
jQuery에서 ajax통신할때 기본 문법..
옵션에 대한 설명은 나중에..
언제가 될지는 모름..나도 모름..
아무튼 기본문법..