建文件~/Views/Shared/EditorTemplates/string.cshtml
输入
@Html.TextBox("", ViewData.TemplateInfo.FormattedModelValue, new { placeholder = ViewData.ModelMetadata.PropertyName})

使用
 @Html.EditorFor(m=>m.Name)
  
*****************************************************************************
签名档: http://feiyun0112.cnblogs.com/

相关文章:

  • 2022-12-23
  • 2021-06-02
  • 2021-11-04
  • 2022-12-23
  • 2021-07-03
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案