MVC 添加多属性 HtmlHelper htmlAttributes

 @Html.EditorFor(model => model.RecommenderName, new { htmlAttributes = new { @class = "form-control" ,disabled="disabled"} })

posted @ 2015-12-09 17:29  zero530  阅读(399)  评论(0编辑  收藏  举报