채택완료

ajax get 데이터 받는 방법..

Copy
<script>function tel_ajax(){     jQuery.ajax({           type:"GET",           url:"/test.php", //페이지 경로		   data : {date:$('#todays').val()},           dataType:"text", // 옵션이므로 JSON으로 받을게 아니면 안써도 됨           success : function(data) {},           error : function(xhr, status, error) {alert("에러발생");}     });}</script><a href="#" onclick="tel_ajax();">tel</a><input type="hidden" id="todays" value=""/>

 

test.php에 뭐라고 써야 data를 넘겨 받을 수 있나요??ㅠ

|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트

답변에 대한 댓글 1개

답변을 작성하려면 로그인이 필요합니다.