WishMeLz

生活其实很有趣

JS笔记

直接返回时间戳:Date.now();

当前时间 
let newDate = new Date();
      let strData = `${newDate.getFullYear()}-${newDate.getMonth() + 1}-${newDate.getDate()} ${newDate.getHours()}:${newDate.getMinutes()}:${newDate.getSeconds()}`
      console.log(strData);

VIDEO倍速:playbackRate