一个计时器,按扭开始会开始,按暂停就停止。可是如果按两次开始,就无法暂停计时了,为啥?
setInterval:"timers", hour: '0' + 0, minute: '0' + 0, second: '0' + 0 }, timer: function () { const that = this var second = that.data.second var minute = that.data.minute var hour = that.data.hour that.data.setInter = setInterval(function () {。。。。。。。。。。。 stoptimer : function () { var that =this ; clearInterval(this.data.setInter) },