C# MVC @Html.DropDownListFor对简单的下拉列表的匿名类构造方法
@Html.DropDownListFor(m=>m.Recommend,new SelectList(new[]{ new { value = 0, text = "否" },new { value = 1, text = "是" } }, "value", "text", 0),new { @class = "form-control" })
微信号:jamesworkshop 学习QQ群:364976091