我正在尝试使用AngularJS代码清除登录会话。
$scope.clearLogin = function () {
delete $window.sessionStorage;
window.localStorage.clear();
$window.location.href = 'index.html';
};
这是将我重定向到索引页面但是当我点击后退按钮时,我正在进入应用程序并且会话仍然可用。
如何清除会话,限制用户在注销后登录应用程序?
答案 0 :(得分:0)
应该是 let total = 0;
get Total() {
for(let p of products) {
total+ = p.Subtotale;
}
return total;
}
$window