会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
草莓糖&薄荷茶
一个不断踩坑的菜鸟
博客园
首页
新随笔
联系
订阅
管理
2022年8月15日
时间戳转换(第二版)
摘要: 代码: timestampTostr(timestamp, format ="yyyy-mm-dd hh:mm:ss") { var date = new Date(timestamp); // 时间戳为10位需*1000,时间戳为13位的话不需乘1000 //转换的时间格式 var Y = dat
阅读全文
posted @ 2022-08-15 16:27 草莓糖&薄荷茶
阅读(58)
评论(0)
推荐(0)
编辑
公告