$.ajax({ url: url, data: { datas: datas }, type: 'post', success: function (result) { parent.HiddeLoading(); }, error: function (result) { parent.HiddeLoading(); } })
增加:type:'post',就可以了
public ActionResult Save(List<CommonFormData> datas) { try { dvaContext context = new dvaContext(); context.SaveChanges(); } catch (Exception ex) { BLL.LogHelper.Error(ex.Message + " | " + ex.StackTrace); throw ex; } return Json(new { Success = true, Message = "保存成功!" }, JsonRequestBehavior.AllowGet); }