【问题标题】:Is there a native HTML date time picker with seconds?是否有带秒的原生 HTML 日期时间选择器?
【发布时间】:2016-08-03 02:07:27
【问题描述】:

有没有办法在 HTML 日期时间选择器中包含秒数?

<input type="datetime-local" />

【问题讨论】:

标签: html datetimepicker


【解决方案1】:

看起来这里有答案,使用“步骤”属性:Show seconds on input type=date-local in Chrome

设置step=1 将在选择器上显示秒数:

<input type=datetime-local step=1>

可以在此处找到该步骤的一些文档:http://www.w3schools.com/jsref/prop_datetime-local_step.asp

【讨论】:

  • 这正是我所需要的。杰出的。谢谢!
猜你喜欢
  • 2010-11-21
  • 2018-09-30
  • 1970-01-01
  • 1970-01-01
  • 2016-06-26
  • 1970-01-01
  • 2021-07-14
  • 2015-04-14
  • 2017-03-02
相关资源
最近更新 更多