jquery post

function ajax_post(){
  $.post(
    "action.php",
    {email:$('#email').val(),address:$('#address').val()},    function(data){     //$('#msg').html("please enter the email!");     //alert(data);     $('#msg').html(data);     },    "text");//这里返回的类型有:json,html,xml,text }

  

posted @ 2016-11-16 17:32  tang1jun  阅读(102)  评论(0编辑  收藏  举报