mvc 下拉列表 DropDownList 两种绑定方式

 $("#id").val("请选择"); 前台  @Html.DropDownListFor(model=> model.lishudanweiid, ViewBag.DevNameList asIEnumerable<SelectListItem>, "请选择", new {@class = "form-control" })ui 后台 1绑定数据源 :ViewBag.DevNameList 
相关文章
相关标签/搜索