ajax post form表单

$.ajax({
                cache: true,
                type: "POST",
                url:"url",
                data:$('#formid').serialize(),// 你的formid
                async: false,
                error: function(request) {
                    alert("Connection error");
                },
                success: function(data) {
                    console.log(data);
                }
            });
原文地址:https://www.cnblogs.com/liyangxj/p/4615304.html