控制器与视图数据传递

1 ViewData  需要类型换

2 ViewBag 不需要类型转换

3 TempData 跨动作方法传递数据

4 View+Model 传递模型数据

猜你喜欢

转载自blog.csdn.net/xbfengyu/article/details/77992554