html input type 为 datetime-local 显示年月日时分秒
html的input标签 type属性设为datetime-local默认只显示年月日时分
<input type="datetime-local" class="form-control" name="miApplyTimeTime" id="miApplyTimeTime" value="2022-01-01" placeholder="" style="line-height:1">
显示效果
如果要显示秒只有在input标签中加入 step="1"才行
<input type="datetime-local" class="form-control" name="miApplyTimeTime" id="miApplyTimeTime" value="2015-01-01" placeholder="" style="line-height:1" step="1">