自己存档:ajax 动态提交form

                $.ajax({
                    cache: true,
                    type: "POST",
                    url: "/postcomment",
                    data: $('#pinglunform').serialize(),// 你的formid
                    async: false,
                    error: function (request) {
                        alert("Connection error");
                    },
                    success: function (data) {
                        $("#commonLayout_appcreshi").parent().html(data);
                    }
                });

上一篇:数据库连接--------sql server


下一篇:[WinForm]DataGridView通过代码新增行问题