Commit 44ddbff7 authored by 汪欢's avatar 汪欢

1

parent ddafd071
...@@ -107,7 +107,7 @@ Page({ ...@@ -107,7 +107,7 @@ Page({
let month = new Date(parseInt(createTime)).getMonth() + 1; let month = new Date(parseInt(createTime)).getMonth() + 1;
let date = new Date(parseInt(createTime)).getDate(); let date = new Date(parseInt(createTime)).getDate();
month = month < 10 ? ('0' + month) : month; month = month < 10 ? ('0' + month) : month;
date = month < 10 ? ('0' + date) : date; date = date < 10 ? ('0' + date) : date;
item.monthDate = month + '月' + date + '日'; item.monthDate = month + '月' + date + '日';
console.log(item.monthDate, 'time') 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