我需要有关此路线图的帮助
routes.MapRoute("Blog_Archive",
"Blog/Archive/{year}/{month}/{day}",
new {
controller = "Blog",
action = "archive",
year = "",
month = "",
day = "",
page = 0
});
当我调用http://localhost:5060/blog/Archive/2008/11时,它会获取年份和月份并将其发送到控制器。但是当我尝试http://localhost:5060/blog/Archive/2008
时,它会将其发送到控制器,但 year 参数为空,所有其他参数也是如此。