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); }
标签:function,Success,ids,ajax,传送数据,result,后台,true 来源: https://www.cnblogs.com/wjx-blog/p/14406507.html