11 2022 档案
video 属性和事件用法大全
摘要:1、video 属性 <!-- video 不支持 IE8及以下版本浏览器,支持三种视频格式:MP4,WebM 和 Ogg --> <video src="test.mp4" controls width="400" height="300"></video> <!-- 禁止下载 --> <vide
阅读全文
获取当前时间的前一天 后一天 一周后
摘要:created() { //取前一天时间 let reTime = this.getDay(-1, 7200000); //转化为毫秒 let jugdeTime = Date.parse(reTime); console.log('昨天:', this.getDay(-1, 7200000)) c
阅读全文
获取系统时间并转换
摘要:获取系统时间 new Date() 打印系统时间 console.log(new Date()) //Mon Nov 21 2022 17:21:53 GMT+0800 (中国标准时间) 系统时间转换格式 console.log(new Date().toLocaleString()) //2022
阅读全文