$stateProvider.state('home', {
url: '/',
resolve: {
person: function() {
return 'good'
}
}
Run Code Online (Sandbox Code Playgroud)
像上面的状态配置一样,如何在$ stateChangeSuccess回调函数中获取'person'值?
$rootScope.$on('$stateChangeSuccess',
function(event, toState, toParams, fromState, fromParams) {
// I want get the 'person' value in this function, what should I do?
});
Run Code Online (Sandbox Code Playgroud) >>> from hexbytes import HexBytes
>>> ...
>>> hb
HexBytes('0x53b983fe73e16f6ed8178f6c0e0b91f23dc9dad4cb30d0831f178')
Run Code Online (Sandbox Code Playgroud)
我有一个HexBytes对象hb,我想得到'0x53b983fe73e16f6ed8178f6c0e0b91f23dc9dad4cb30d0831f178'字符串,我该怎么办?