会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
我的故事没编好
博客园
首页
新随笔
联系
订阅
管理
2019年11月21日
JavaScript获取时间戳
摘要: 有时前后端交互需要传递时间戳。获取时间戳的方法如下: console.log( Date.parse(new Date()) ) // 1574318285000 精确到秒 console.log( (new Date()).valueOf() ) // 1574318285290 精确到毫秒 co
阅读全文
posted @ 2019-11-21 14:40 我的故事没编好
阅读(865)
评论(0)
推荐(0)
公告