我有代码:
auth(){
this.storage.get('username').then((username) => {
if(this.username == username){
this.showAlertRegisterFailed();
}
else {
this.showAlertRegisterSuccess();
}
})}
doRegister(){
let postParams = {
nama :this.nama,
email :this.email,
username :this.username,
password :this.password
}
this.storage.set(this.username, postParams).then(
() => {
this.auth();
},
error => {
this.showAlertRegisterFailed();
}
);}
有人可以查看错误的位置......
代码是关于注册页面的,如果用户名已经显示注册失败,则使用本地存储。
由于