ajax 向后台传送数据的记录

        bootbox.confirm("确认要删除?", function (e) {
            if (e) {
                ShowLoading();
                $.ajax({
                    url: '@Html.UrlHref("LocalSite", "/PlanDayManagement/RestDaySetting/DeleteBatch")',
                    data: { ids: ids },
                    dataType: "json",
                    traditional: true,
                    success: function (result) {
                        alert(result.Message);
                        if (result.Success) {
                            queryGrid();
                        }
                    },
                    complete: function () {
                        HiddeLoading();
                    }
                })
            }
        })

 

        public ActionResult DeleteBatch(List<string> ids)
        {
            BLL.Base.CacheHelper.Remove("plan_day_type_rest_day_setting");
        ... return Json(new { Success = true, Message = "删除成功!" }, JsonRequestBehavior.AllowGet); }

 

posted @ 2021-02-16 13:16  星星c#  阅读(52)  评论(0编辑  收藏  举报