MVC控制器与视图传递数据的几种方式

1.后台传值: 1 public class DataController : Controller 2 { 3 // GET: Data 4 public ActionResult Index() 5 { 6 //1 ViewData传值 7 ViewData["n
相关文章
相关标签/搜索