方法一:使用ViewData赋值 首先,我们创建一个User的实体类 public class User { public string UserID; public string UserName; public string Sex; } 然后,我们在Action中添加假数据,并将假数据放到ViewData中 public ActionResult test() { List<User> listUser = new List<User>(); listUser.Add(new
欢迎"热爱编程"的高考少年--报考杭州电子科技大学计算机学院 Just a Hook Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 20889 Accepted Submission(s): 10445 Problem Description In the game of DotA, Pudge's meat hook