我知道这个网站是使用 ASP.Net MVC 编写的,但我在 url 中没有看到“/Home”。这向我证明这是可以做到的。我需要什么特殊路线?
只需将“Home”更改为空字符串即可。
routes.MapRoute( "Home", "", new { action = Index, controller = Home } );