Ajax 반환값으로 json 처리

|


$.ajax({

type : "post",

url : "/Product/Ajax_ProductList.asp",

data : "Page=" + page + "&Keyword=" + keyword + "&idx=" + idx,

dataType : "json",

complete: function( res, status ) {

if ( status === "success" || status === "notmodified" ) {

var jsonData = $.parseJSON(res.responseText);


alert(jsonData.aaaa)

}else{

alert(status);

}

}

});


http://api.jquery.com/jQuery.parseJSON/

'Javascript > jQuery' 카테고리의 다른 글

Datepicker 특정 요일 선택 막기  (0) 2013.03.04
.serialize()  (0) 2013.02.26
Dialog에서 title 지우기  (0) 2012.04.04
Selector  (0) 2011.11.04
Datepicker 삭제  (0) 2011.06.22
And