Note: I'm using AttributeRouting here.
属性路由 NuGet 的 ASP.NET MVC 5 中包含 AttributeRouting 。属性路由是所有有关使用属性直接在控制器的Action方法上定义的路由。 出于这个原因,AttributeRouting项目已启动,现已集成在ASP.NET MVC 5 中,甚至在 Web API 也有集成,将在后面章节讨论。 了解更多信息(如,配置),可以参考http://attributerouting.net,在 NuGe t包中已经集成到 ASP.NET MVC。
app.ApplicationServices.GetRequiredService<MvcRouteHandler>(), }; configureRoutes(routes); routes.Routes.Insert(0, AttributeRouting.CreateAttributeMegaRoute
官方介绍网站: http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx AttributeRouting 可以通过Attribute 官方网站: http://attributerouting.net RouteJs 前端js代码经常要通过ajax访问服务器端的地址,在MVC项目中一个地址是有路由映射出来的,一个地址对应的Action