【JavaScript】时间戳转时期格式

var xxx = 时间戳;

var date = new Date(xxx).toLocaleString().replace(/:\d{1,2}$/,' ');

发布了110 篇原创文章 · 获赞 25 · 访问量 16万+

猜你喜欢

转载自blog.csdn.net/qq_32117641/article/details/105422051