var time = 20: var timer = setInterval(function () { time = time - 1; that.setData({ CountDown: time }); console.log(time); if (time == 10) { clearInterval(timer ); wx.redirectTo({ url: './game', }); } }, 1000); 正常情况下页面刷新之后正在执行的计时器会被清除,可是在小程序当中并不是这样,…