public ActionResult Delete2(long id) { PermSvc.MarkDeleted(id); return Json(new AjaxResult{ Status = "ok" }); }
$.ajax({ url: "/Permission/Delete2/"+id, type:"post", //data: {id:id} dataType:"json", success:function(res) { if(res.status=="OK") { $(obj).parents("tr").remove(); layer.msg(‘已删除!‘); } else { layer.msg(‘删除失败!‘); } } });