美文网首页
时间戳问题

时间戳问题

作者: 奋斗滴猩猩 | 来源:发表于2018-07-18 11:39 被阅读9次

js时间戳转换成time:
new Date(parseInt(8位时间戳 )* 1000).toLocalString()
new Date(parseInt(13位时间戳 )).toLocalString()
注意最好有一个parseInt()进行转换

相关文章

网友评论

      本文标题:时间戳问题

      本文链接:https://www.haomeiwen.com/subject/eklopftx.html