SOURCE

console 命令行工具 X clear

                    
>
console
angular.
  module('exceptionOverwrite', []).
  factory('$exceptionHandler', ['$log', 'logErrorsToBackend', function($log, logErrorsToBackend) {
    return function myExceptionHandler(exception, cause) {
      logErrorsToBackend(exception, cause);
      $log.warn('test====' + exception, cause);
    };
  }]);
<h1>$exceptionHandler</h1>

本项目引用的自定义外部资源