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

WBOY
發布: 2016-06-02 11:34:01
原創
925 人瀏覽過

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>
登入後複製
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!