JS——时间戳与标准时间的相互转换
7/10/2022
文章链接:https://blog.csdn.net/qq_43201350/article/details/121703684
时间戳转标准时间
let t2 = 1542097329747;
new Date(t2)标准时间转时间戳
let t1 = "2018-11-13 12:50:30";
t1.getTime()文章链接:https://blog.csdn.net/qq_43201350/article/details/121703684
时间戳转标准时间
let t2 = 1542097329747;
new Date(t2)标准时间转时间戳
let t1 = "2018-11-13 12:50:30";
t1.getTime()