微信小游戏中时间戳转日期

subtime就是秒数

let currTime = wx.getPerformance().now();
 let subTime = Math.ceil( (Math.ceil(currTime) - lastTime) / 1000000 ) ;
发布了69 篇原创文章 · 获赞 10 · 访问量 10万+

猜你喜欢

转载自blog.csdn.net/mhtqq809201/article/details/84966769