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
}
原文:http://www.cnblogs.com/liliyi/p/6070489.html