javascript转换时间戳

var unixTimestamp = new Date(1513814400000);
commonTime = unixTimestamp.toLocaleString();

posted @ 2017-12-27 19:24  Earic  阅读(153)  评论(0编辑  收藏  举报