【发布时间】:2016-12-01 00:23:45
【问题描述】:
我正在尝试用一个有趣的算法来记住我。我在想,当我单击记住我并登录时,文本字段(用户名和密码)的值将保存为默认值。我的登录按钮点击事件在这里:
var username = Ext.getCmp('setNo').getValue();
var password= Ext.getCmp('setPass').getValue();
if(refs.checkStudent.value === true){
Ext.getCmp('setNo').setValue(username);
Ext.getCmp('setPass').setValue(password);
}
else{
Ext.getCmp('setNo').setValue("");
Ext.getCmp('setParola').setValue("");
}
在控制台上,它正在工作。但我正在与本地商店合作,没有服务器。所以当我刷新页面时,它就消失了。有没有办法不丢失它们?
【问题讨论】:
标签: javascript extjs