let nowTime = new Date();
let copyTime = nowTime.getFullYear() + ‘-’ + (nowTime.getMonth() + 1) + ‘-’ + nowTime.getDate() + ’ ’ + nowTime.getHours() + ‘:’ + nowTime.getMinutes() + ‘:’ + nowTime.getSeconds() + ‘.’ + nowTime.getMilliseconds() + ’ ’ + ‘00:00’;
可以拿到毫秒级本地时间
获取本地详细时间函数
最新推荐文章于 2022-02-21 16:51:51 发布