自己存档: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);
                    }
                });

posted on 2014-02-15 09:25  mikelij  阅读(240)  评论(0编辑  收藏  举报

导航