编写会员列表详情

This commit is contained in:
duan
2024-05-27 17:36:40 +08:00
parent face0eeafb
commit e0781543b4
2 changed files with 58 additions and 8 deletions

View File

@@ -91,7 +91,7 @@
const hour = date.getHours(); // 获取小时
const minute = date.getMinutes(); // 获取分钟
const second = date.getSeconds(); // 获取秒数
const formattedDate = `${year}-${month}-${day} ${hour.length==1? '0'+hour:hour}:${minute.length==1? '0'+minute:minute}:${second.length==1? '0'+second:second}`; // 拼接成格式化后的日期字符串
const formattedDate = `${year}-${month}-${day} ${hour<10? '0'+hour:hour}:${minute<10? '0'+minute:minute}:${second<10? '0'+second:second}`; // 拼接成格式化后的日期字符串
return formattedDate
}
},