1.下拉框代码方式 控制器内构建下拉项目: List<SelectListItem> list = new List<SelectListItem>(); list.Add(new SelectListItem() { Text = "计算机", Value = "computer" }); list.Add(new SelectListItem() { Text = "数学", Value = "math&qu…
1.Model层定义属性 public class vmUser { public string userName { get; set; } public string sex { get; set; } public int? age { get; set; } public DateTime? enrollDate { get; set; } public string deptName { get; set; } public Dictionary<string,bool> skill…