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 回答
- 0 關(guān)注
- 499 瀏覽
添加回答
舉報
0/150
提交
取消