Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我想从 中直接访问RouteData(例如当前操作或参数值)View,而不是必须从控制器中将其作为 的一部分传入ViewData,我将使用什么类?
RouteData
View
ViewData
this.ViewContext.RouteData
应该做的伎俩。