死在一个字符串(“OK”)上

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('删除失败!');
                }
            }
        });
原文地址:https://www.cnblogs.com/HuShaoyi/p/8576014.html