[HttpPut] public JsonResult Update(Student student) { if (student == null) return Json("参数为空"); return Json(bLL.Update(student)); } [HttpDelete] public JsonResult Delete(dynamic[] ids) { if (ids.Length == 0) return Json("参数为空"); return Json(bLL.Delete(ids)); }
“[HttpPut]”,“[HttpDelete]” 特性未添加 或者添加错误 导致。
具体的特性差异可参考:https://blog.csdn.net/xiaolinlife/article/details/72854741