const data={ name:this.ruleForm.name, startTime:`${this.ruleForm.startTime.getFullYear()}-${this.ruleForm.startTime.getMonth() + 1}-${this.ruleForm.startTime.getDate()} ${this.ruleForm.startTime.getHours()}:${this.ruleForm.startTime.getMinutes()}:${this.ruleForm.startTime.getSeconds()}`, endTime:`${this.ruleForm.endTime.getFullYear()}-${this.ruleForm.endTime.getMonth() + 1}-${this.ruleForm.endTime.getDate()} ${this.ruleForm.endTime.getHours()}:${this.ruleForm.endTime.getMinutes()}:${this.ruleForm.endTime.getSeconds()}`, }
标签:getSeconds,getMinutes,ss,getHours,dd,ruleForm,MM,startTime,endTime From: https://www.cnblogs.com/naitang/p/16981671.html