jquery Ajax提交表单数据

//表单中控件的name要和实体类字段属性一致
$.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);
                }
            });

 

posted @ 2016-12-28 11:26  微笑代表淡定.Net  阅读(127)  评论(0编辑  收藏  举报