MVC 添加多属性 HtmlHelper htmlAttributes

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

原文地址:https://www.cnblogs.com/zero530/p/5033570.html