Why does Firefox only fire unload/beforeunload when breakpoints are used?

后端 未结 0 1471
北荒
北荒 2020-12-18 01:49
  $scope.unload = function () {
    myService.sendSomethingToDatabase({ userId: $scope.user.id});
  }

  $scope.$on(\'$destroy\', function () {
    $scope.unload();
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题