摘要: alarm_time: [ { required: true, message: "请输入时间", trigger: "blur" }, { validator(rule, value, callback) { if (Number.isInteger(Number(value)) && Numbe 阅读全文
posted @ 2019-11-18 17:46 小秋菇娘 阅读(524) 评论(1) 推荐(0)
摘要: 有两种方法 1.可以用day.js,处理日期和时间的js库 用法 npm install dayjs --save 引入import dayjs from 'dayjs' 然后创建定时器更新最新的时间 this.timeId = setInterval(()=>{ this.sday =dayjs( 阅读全文
posted @ 2019-11-18 17:33 小秋菇娘 阅读(4517) 评论(1) 推荐(0)