@Html.EditorFor(m => m.Name, new { htmlAttributes = new { @required = "true", @anotherAttribute = "whatever" } })
Html.EditorFor 加 htmlAttributes
原文:http://www.cnblogs.com/evemen/p/7581826.html