代码:
HTML结构如下:
<label class="telnumber">
<input type="tel" name="mobile" placeholder="请输入手机号" ng-model='mobile' ensure-unique="mobile" ng-maxlength="11" required>
</label>
<label class="password">
<input id="passwd1" type="password" name="psw" placeholder="请输入6-16位密码" ng-model="psw" required ng-minlength="6" ng-maxlength="16" ng-change="change()" ng-show="!shows">
<input id="passwd2" type="text" placeholder="请输入6-16位密码" ng-model="psw" ng-value="psw" required ng-minlength="6" ng-maxlength="16" ng-change="change()" ng-show="shows">
<span class="passtips">
<i class="pass_colse" ng-click="reset()"></i>
<i class="pass_show" ng-click="toggle()" >
<i class="esy" ng-if="!shows"></i>
<i class="esy_hover" ng-if="shows"></i>
</i>
</span>
</label>
<label class="sns">
<span class="remember-me">
<label>
<input type="checkbox" name="remember_me" checked="" value="true">记住密码
</label>
<span class="signup" ng-click="openurl()"><a href="#">注册新用户</a></span>
<input type="button" id="submit" value="登录" ng-click="login()" />
<div class="passzz" >
<p>密码错误</p>
</div>
ps:好像在使用angular写单网页应用时,会自动屏蔽浏览器记住密码功能???