Vue问题1:TypeError:date.getHours is not a function

再用vue的时间控件的时候

Vue问题1:TypeError:date.getHours is not a function

遇到了如下的问题:

Vue问题1:TypeError:date.getHours is not a function

解决方法:在<el-date-picker></el-date-picker>时间控件加上value-format="yyyy-MM-dd"

Vue问题1:TypeError:date.getHours is not a function

以防出现date.getTimes is not a function以下的applyTime设置为null

Vue问题1:TypeError:date.getHours is not a function


时间控件输入框的校验的type=“date”去除;

Vue问题1:TypeError:date.getHours is not a function