jquery通过ajax提交form

$.ajax({
   type: "POST",
   url: "some.php",
   data: "name=John&location=Boston",
   success: function(msg){
     alert( "Data Saved: " + msg );
   }
});
原文地址:https://www.cnblogs.com/azhqiang/p/4475738.html