获取当天凌晨时间

//获取明天凌晨;
let start = 0;
this.orderList.forEach(item => {
if (item.time === '0') {
start = new Date(new Date(new Date().setDate(new Date().getDate()+1)).setHours(0,0,0,0)).getTime();
item.withdrawTime = start;
} else {
start = new Date(new Date(new Date().setDate(new Date(item.time * 1000).getDate()+1)).setHours(0,0,0,0)).getTime();
item.withdrawTime = start;
}
});
posted @ 2018-05-16 19:46  情绪控攻城狮  阅读(1042)  评论(0编辑  收藏  举报