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); }
原文地址:https://www.cnblogs.com/wjx-blog/p/14406507.html