JS系列---【判断是否是标准时间】
if(Object.prototype.toString.call(this.form.timeDate) === '[object Date]'){ let time = new Date(this.form.timeDate); let newTime = time.getFullYear() + '-' + this.zero(time.getMonth()+1) + '-'+this.zero(time.getDate()); this.form.timeDate = newTime; }