mvc5 Html.EditorFor html属性有了新变化,和以前的不同了 @Html.EditorFor(model => model.MaxNumber, new { htmlAttributes = new { @min = "1" } })