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); }

 

上一篇:基于Roberta进行微博情感分析


下一篇:elementui 之el-table 实现批量删除功能