0
我正在編寫一個用於路由的URL Slug。我應該讓slug約束空白還是什麼?ASP.NET MVC - 正則表達式用於URL Slug
這裏是我的代碼:
routes.MapRoute(
null,
"q/{slug}/{id}",
new { controller = "q", action = "Index" },
new { id = @"^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$" }
);
嵌塞將這種格式
how_do_you_open_jar_file_on_computer