请告诉我字节值如何变化

时间:2017-02-09 09:21:01

标签: java

请有人告诉我如何获得以下代码的55个答案。

(function() {
    'use strict';

    // declare modules
    angular.module('Authentication', []);
    angular.module('Home', ['naif.base64', 'ngFileSaver']);

    //dependecies of the module 
    angular.module('JMeterGui', ['Authentication','Home','ngRoute', 'ngCookies'])
    //configure the module
    .config(config)
    //configure the start of the module
    .run(run);

    //dependencies of the config module
    config.$inject = ['$routeProvider', '$locationProvider', '$qProvider'];
    //configure routing depends on the actual URL
    function config($routeProvider, $locationProvider, $qProvider) {

        $routeProvider
            .when('/', {
                controller: 'HomeController',
                templateUrl: 'modules/home/views/home.html'
            })

            .when('/login', {
                controller: 'LoginController',
                templateUrl: 'modules/authentication/views/login.html'
            })

            .otherwise({ redirectTo: '/login' });
    }

    //dependecies of the run module
        run.$inject = ['$rootScope', '$location', '$cookies', '$http'];
        function run($rootScope, $location, $cookies, $http) {
            // keep user logged in after page refresh
            $rootScope.globals = $cookies.getObject('globals') || {};
            if ($rootScope.globals.currentUser) {
                $http.defaults.headers.common['Authorization'] = 'Basic ' + $rootScope.globals.currentUser.authdata; 
            }

            $rootScope.$on('$locationChangeStart', function (event, next, current) {
                // redirect to login page if not logged in
                var restrictedPage = $.inArray($location.path(), ['/login']) === -1;
                var loggedIn = $rootScope.globals.currentUser;
                if (restrictedPage && !loggedIn) {
                    $location.path('/login');
                }
            });
        }
})()

我的回答如下 字节值:55

感谢。

1 个答案:

答案 0 :(得分:1)

067是Java中的八进制数表示法(由于前导0)。

OCT 67 = 6 * 8 + 7 = 55