更新时间:2023-11-25 08:38:28
升级到MVC 5.1,你可以在EditorFor中使用HTML属性:
Upgrade to MVC 5.1 and you can use HTML attributes in EditorFor:
@Html.EditorFor(m => m.variable, new { htmlAttributes = new { placeholder = "Your Placeholder Text" } })
http://www.asp.net/mvc/overview/releases/mvc51-release-备注
如何在j2ee中使用换行符替换某些标签并删除其他标签
如何在多个类实现中使用 CDI 限定符?
量角器:如何从字符串中删除多余空间就像我们在java中使用getText.trim()一样
如何在用户模型中保存静态页面属性
如何使用 vbscript 在现有 xml 中添加属性
使用 Git,如何在所有分支中搜索字符串?
使用git,我如何在所有分支中搜索字符串?
如何在属性的getter方法上使用@XMLElement覆盖在类级别指定的JAXB @XMLAccessorType(XMLAccessType.FIELD)?
Magento:如何获取产品中使用的属性值
Magento2结帐表格:如何在字段中显示占位符属性值?