邓洁 : 完善细节

This commit is contained in:
dengj
2023-12-11 17:32:37 +08:00
parent 407898dcc4
commit 2f8cb49ac4
7 changed files with 37 additions and 6 deletions

View File

@@ -9,7 +9,6 @@ export const dateFormat = (time = new Date().getTime()) => { //YYYY年MM月DD日
const m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes());
const s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
let weekDay = new Date().getDay();
console.log('weekDay',weekDay)
const week= weekList[weekDay]
// const strDate = `${Y}/${M}/${D} ${h}:${m}:${s}`
return `${Y}${M}${D}日 星期${week}`;