这里我打电话给我的网址(与澳鹏我的详细信息和会话ID等),如波纹管,
"http://localhost:7070/dais-portal/#/SocialLandingPage/"+userID+"/"+entityId+"/"+channelID+"/"+sessionID
JS文件
app.config(function($stateProvider, $urlRouterProvider, $locationProvider) {
/*
* $urlRouterProvider.otherwise('/');
*/
$stateProvider
.state('SocialLandingPage', {
url: '/SocialLandingPage/:userID/:entityId/:channelID/:sessionID',
views: {
'content-page': {
templateUrl: 'loginPage/view/dais-dummy-landing-page.html'
}
}
})
}
伪着陆page.html中,这里被称为一个控制器。并获取所有值(如用户ID,entityId,channelID和会话ID)
从该控制器。 我越来越喜欢这个,
$scope.userID = $stateParams.userID;
$scope.entityId = $stateParams.entityId;
$scope.channelID = $stateParams.channelID;
$scope.sessionID = $stateParams.sessionID;
请添加要在其中存储令牌一些代码和详细信息,以及你使用的是什么后台? – Sravan
你的问题不清楚。请以更好的方式解释。 – undefined
只要console.log(window.location),看看你是否有东西。 –