[jquery]AJAX 기본형태

.ajax({
var name = "apple";
var text = "red color";
type: 'POST',
url: '',
dataType: 'json',
data : { "name": name, "description": text},
success : function(result){
},
error : function(request, status, error){

}
});

댓글