会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
幽暗天琴
博客园
首页
新随笔
联系
订阅
管理
2024年3月12日
VUE3将时间戳转换为时间格式
摘要: formatDate(time) { const date = new Date(time*1000); const year = date.getFullYear(); const month = String(date.getMonth() + 1).padStart(2, '0'); // 月
阅读全文
posted @ 2024-03-12 14:58 幽暗天琴
阅读(696)
评论(0)
推荐(0)
编辑
公告