Model. The prototype. The open=function (event) {
Var Uname=p (" nameinput "). This.com val ();
Var Upwd=p (" pwdinput "). This.com val ();
Var user=this.com p (" user ");
The user. The clear ();
The user. The filters. The setVar (" Uname ", Uname);
The user. The filters. The setVar (" Upwd, "Upwd);
User. RefreshData ();
If (user. The count () & gt; 0 {
If (Uname==user. Val (" Uname ")) {
If (Upwd==user. Val (" Upwd ")) {
Justep. Util. Hint (" login successfully!" );
Var url=the require. ToUrl (./index. "w");
Justep. Shell. ShowPage (url);
} else {
Justep. Util. Hint (" account or password error!" );
}
} else {
Justep. Util. Hint (" account or password error!" );
}
;
}
CodePudding user response:
Do you like this do not belong to the native Android ranks, the inside of the code means can read, but can't find the problem,CodePudding user response:
Don't know how to return a responsibility!