我希望在 ASP.NET MVC 5 中做一些事情来将隐藏字段设置为当前日期和时间。就像是:
@Html.HiddenFor(model => model.CommentTime, new { @Value=DateTime(Now) })
我希望在 ASP.NET MVC 5 中做一些事情来将隐藏字段设置为当前日期和时间。就像是:
@Html.HiddenFor(model => model.CommentTime, new { @Value=DateTime(Now) })