angularJS拦截路由 $rootScope.$on('$stateChangeStart', function(event, toState, toParams, fromState, fromParams)