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