>  기사  >  백엔드 개발  >  ajax-我这段代码本页面可显示出传递的信息,但是在被传递页面中却无法接收到信息呢?谢谢!

ajax-我这段代码本页面可显示出传递的信息,但是在被传递页面中却无法接收到信息呢?谢谢!

WBOY
WBOY원래의
2016-06-02 11:34:01928검색

ajaxjavascriptpostjqueryphp

<code> <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Untitled Document</title>
<script type="text/javascript" src="jquery-1.3.2.js"></script><script type="text/javascript" src="json2.js"></script><script language="javascript">function checkemail(){  if($('#email').val() == ""){    $('#msg').html("please enter the email!");    $('#email').focus;    return false;  }  if($('#address').val() == ""){    $('#msg').html("please enter the address!");    $('#address').focus;    return false;  }  ajax_post(); }function ajax_post(){  $.post("http://localhost:8086/a1.1.php",{email:$('#email').val(),address:$('#address').val()},  function(data){    //$('#msg').html("please enter the email!");    //alert(data);    $('#msg').html(data);  },  "json");//杩</script></code>
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.