//30分鐘殺菌倒計時 $scope.date = 1800000; var interval = setInterval(function() { if ($scope.date > 0) { $scope.date -= 1000; } else { clearInterval(interval); } $scope.$digest(); }, 1000);寫了一個30分鐘的倒計時 設(shè)定了一個取消功能 如何讓它復(fù)位到最初的30:00
js 倒計時復(fù)位問題
暮色呼如
2019-02-11 10:17:38