标签:
MVC(Model-View-Controller)
3.2 ViewBag
Cat cat = new Cat() { Name="TEST", Age=100 }; return View(cat);
前台(cshtml):添加对Models的引用
@{ Cat cat = Model as Cat; } @cat.Name-----@cat.Age
4
MVC.NET 学习笔记
原文地址:http://www.cnblogs.com/cnfanhua/p/4950314.html