用如下特性[AcceptVerbs(HttpVerbs.Get | HttpVerbs.Post)] 转载于:https://www.cnblogs.com/kangyuanjiang/p/9940052.html