ajax操作提交整个表单内容

 

1
2
3
4
5
6
7
8
9
10
11
12
13
$.ajax({
                cache: true,
                type: "POST",
                url:ajaxCallUrl,
                data:$('#yourformid').serialize(),// 你的formid
                async: false,
                error: function(request) {
                    alert("Connection error");
                },
                success: function(data) {
                    $("#commonLayout_appcreshi").parent().html(data);
                }
            });

 

如需要在后台处理 需要用到PHP的parse_str() 将查询的字符串解析到变量中 便可以使用了

 

posted @ 2016-04-29 17:50  假_行僧  阅读(288)  评论(0编辑  收藏  举报