美文网首页
[HTML5] Datetime-local的input设置到秒

[HTML5] Datetime-local的input设置到秒

作者: 棘刺 | 来源:发表于2019-10-14 11:00 被阅读0次

    添加step=1的属性即可,例如:

     <input  step=1 type="datetime-local" value="2019-01-01T00:00:00">
    

    相关文章

      网友评论

          本文标题:[HTML5] Datetime-local的input设置到秒

          本文链接:https://www.haomeiwen.com/subject/bgolmctx.html