Commit ece4bc36 authored by 汪欢's avatar 汪欢

0

parent 3c5855c7
......@@ -374,6 +374,8 @@ Page({
// let formatCreateTime = new Date(parseInt(createTime)).toLocaleDateString();
let month = new Date(parseInt(createTime)).getMonth() + 1;
let date = new Date(parseInt(createTime)).getDate();
month = month < 10 ? ('0' + month) : month;
date = month < 10 ? ('0' + date) : date;
item.monthDate = month + '月' + date + '日';
console.log(item.monthDate, 'time')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment