Mac睡眠时计时器停止

时间:2018-08-17 13:28:20

标签: angularjs-directive

嗨,我正在编写angularjs,并在我的应用程序中使用计时器显示应用程序中的时间。 它可以在其他平台上正常工作,但不能在mac.timer上停止计时。

  controller: function ($scope) {
  $scope.timer = {};
  $scope.isMilitaryTime = $scope.isMilitaryTime == undefined?false:$scope.isMilitaryTime;
  $scope.buildTimer = function () {
    var date = altaTime.getCurrentTime();
    $scope.timer =  new Timer(date,$scope.isMilitaryTime);
  }
  $scope.getTimer = function () {
    $scope.buildTimer();
    return "";
  }
}

非常感谢。

0 个答案:

没有答案
相关问题