会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Lencamo
——蓝桉已遇释槐鸟,不爱万物唯爱你
博客园
首页
新随笔
联系
订阅
管理
2022年5月21日
格式化当前时间
摘要: 好像还没有 js 内置方法解决这个问题。 方法一:编写原生 js 函数 回忆 Node.js 学习时,进行 包开发 的内容部分 ① 格式化函数编写 function dateFormat(dtStr) { // 这个注意区别new Date() const dt = new Date(dtStr);
阅读全文
posted @ 2022-05-21 08:37 Lencamo
阅读(275)
评论(0)
推荐(0)
编辑
公告