我讀了網上的文章,其顯示以下路由器定義: -瞭解Asp.net MVC路由配置
public static void RegisterRoutes(RouteCollection routes) {
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(null,
205
"",
new {
controller = "Product", action = "List",
category = (string)null, page = 1
}
);
routes.MapRoute(null,
"Page{page}",
new { controller = "Product", action = "List", category =
(string)null },
new { page = @"\d+" }
);
但我不明白這是否路由器的規則意味着,他們將如何工作,我通常不會修改路由器規則並保持默認定義原樣? 謝謝