码迷,mamicode.com
首页 > Web开发 > 详细

ajax post form表单

时间:2015-07-02 11:45:53      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

$.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);
                }
            });

 

ajax post form表单

标签:

原文地址:http://www.cnblogs.com/liyangxj/p/4615304.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!