问题:date.getHours is not a function;

【已解决】date.getHours is not a function问题


分析:v-model="emp.beginDate" 中的emp.beginDate是一个数组,而data里面的beginDate:"2018/01/01"是一个字符串,不符合!

【已解决】date.getHours is not a function问题

【已解决】date.getHours is not a function问题


解决方法:

【已解决】date.getHours is not a function问题

beginDate:"2018/01/01"改为 beginDate:'2018/01/01',

【已解决】date.getHours is not a function问题

成功解决!!!

相关文章: