摘要: 场景后台返回一个时间戳,需要计算倒计时,new Date().getTime()获取当前时间的时间戳。 代码如下: getCountDown(endTime) { // endTime = 1614155555 const nowDate = new Date() const nowTime = p 阅读全文
posted @ 2021-03-01 18:03 sunRise113 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 场景如题 解决方案:使用uni.switchTab({ url: '/pages/index/index' }); 阅读全文
posted @ 2021-03-01 14:19 sunRise113 阅读(1024) 评论(0) 推荐(0) 编辑