MVC ViewData和ViewBag 参数名一样表示同一个值

@ViewData["MenuName"] 和 @ViewBag.MenuName 表示同一个值

猜你喜欢

转载自www.cnblogs.com/enych/p/9277203.html