我试图让用户在我的应用程序中记住他们的凭据,这是我的表单的代码:
<form id="loginForm" ng-model="errLoginMsg" ng-submit="login()" >
<div class="row">
<p class="validation-error">{{errLoginMsg}}</p>
</div>
<div class="row">
<label for="username">Username</label>
<input type="text" tabindex="1" id="username" autocapitalize="off" autocorrect="off" class="form-control" ng-model="credentials.Username" placeholder="User Name" />
<a href="#/forgot/username" class="pull-right small-link">Forgot username?</a>
</div>
<div class="row">
<label for="password">Password</label>
<input type="password" tabindex="2" id="password" class="form-control" ng-model="credentials.Password" placeholder="Password" />
<a href="#/forgot/password" class="pull-right small-link">Forgot password?</a>
</div>
<div class="row">
<button class="btn btn-primary btn-block" href="#">Submit</button>
</div>
</form>
在Android 4.2浏览器(非Chrome)中,它询问用户是否希望存储其凭据,但是下次用户到达该站点时它不起作用。在iPhone上,它根本不起作用。
感谢任何帮助。