jquery ajax
$.ajax({
type: "POST",
url: "program2018Proc.asp",
dataType: "text", // default : xml,json,script,text,html
contentType: "application/x-www-form-urlencoded;charset=euc-kr",
data: {
"EXE_SW": "SETUP",
"VISIT_TYPE": VISIT_TYPE,
"VISIT_DATE": VISIT_DATE,
// "VISIT_AREA": encodeURIComponent(VISIT_AREA),
"VISIT_AREA": VISIT_AREA,
"VISIT_COUNT": VISIT_COUNT
},
// beforeSend: function(jqXHR) {
// jqXHR.overrideMimeType("application/x-www-form-urlencoded;charset=euc-kr");
// },
success: function(data) {
alert(data);
},
error:function(xhr, textStatus) {
console.log(xhr.responseText);
}
});
스터디
번호 | 제목 | 글쓴이 | 날짜 | 조회 |
---|---|---|---|---|
1 |
JS
jquery ajax
05/29 19:32
view . 7455
곤잘레스
|
곤잘레스 | 05/29 19:32 | 7455 |