ajax(一)

            $.ajax({
                type: "post",
                async: false,
                url: "ReadStaffMange.aspx/AddReadStaff",
                data: "{DocCode:\"" + $("#hideDocCode").val() + "\",DocNo:\"" + $("#hideDocNo").val() + "\",StaffNos:\"" + $("#txtStaffNo").val() + "\"}",
                datatype: "json",
                contentType: "application/json",
                success: function (data) {
                    if (data.d == "1") {
                        location.reload();
                    }
                    else {
                        layer.alert(data.d);
                    }
                }
            });
posted @ 2017-07-20 11:23  大步向前走  阅读(124)  评论(0编辑  收藏  举报