为了账号安全,请及时绑定邮箱和手机立即绑定

MVC4 DataType.Date EditorFor不会在Chrome中显示日期值

MVC4 DataType.Date EditorFor不会在Chrome中显示日期值

MMMHUHU 2019-08-15 14:51:43
MVC4 DataType.Date EditorFor不会在Chrome中显示日期值,在Internet Explorer中也不错我在我的模型中使用DataType.Date属性,在我的视图中使用EditorFor。这在Internet Explorer 8和Internet Explorer 9中运行良好,但在谷歌浏览器中它显示日期选择器,而不是显示值,它只是在褪色的灰色文本中显示“月/日/年”。为什么Google Chrome不会显示价值?模型:[DataType(DataType.Date)]public Nullable<System.DateTime> EstPurchaseDate { get; set; }视图:<td class="fieldLabel">Est. Pur. Date</td><td class="field">@Html.EditorFor(m=>m.EstPurchaseDate)</td>
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 449 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信