// _this.lotteryTime 这是你要传入的 国际标准时间 或者时间戳
var d = new Date(_this.lotteryTime);
_this.saveModel.lotteryTime =
d.getFullYear() +
"-" +
(d.getMonth() + 1) +
"-" +
d.getDate() +
" " +
d.getHours() +
":" +
d.getMinutes() +
":" +
d.getSeconds();
将国际标准时间和时间戳转换成年月日时分秒
最新推荐文章于 2024-06-22 15:21:06 发布