asp.net mvc 伪静态

1.mvc 路由配置

routes.MapRoute(
name: "Product",
url: "item/{id}.html",
defaults: new { controller = "Product", action = "Index" },
constraints: new { id = @"^\d+" }
);

 

posted @ 2019-05-17 11:35  木有昵称  阅读(184)  评论(0编辑  收藏  举报