var data = $("#youtv_etc").serialize(); $.ajax({ data: data, type: 'POST', datatype : "json", url: './php_bin/ins_youtv_ajax.php',
success:function(args){ var object = $.parseJSON(args); $.each(object , function(key, value) { // 데이터 =item $("#memo").append(value + ""); });
}, //beforeSend:showRequest, error:function(e){ alert(e.responseText); } =====================================
<? echo json_encode( array("memo" => "$reader_body","wdate" => "$wdate")); ?>
var object = $.parseJSON(args);
if(object.rCode=="1") {
}
|