0
我使用流星useraccounts:bootstrap。 在我的导航栏上,我有btnLogin和btnLogOut。我只希望我的登录按钮显示在IM注销,只注销按钮时,即时通讯登录流星useraccounts手表状态
我的逻辑:
if (!error) {
if (state === "signIn") {
document.getElementById('btnLogin').style.display = 'none';
}
else if (state != 'signIn') {
document.getElementById('btnLogOut').style.display = 'visible';
}
如何让我的应用程序来寻找状态,而不触发事件/点击?
谢谢!
完美!正是我想要的和流星! – user3323307