清除input框对浏览器保存的用户名和密码自动填充问题

清除input框对浏览器保存的用户名和密码自动填充问题:

type类型写如下写法,聚焦的时候type类型为“password”

<input ng-model="getpwd" name="password"

   type="text"  type="password" autocomplete="off"  onfocus="this.type='password'"  required/ >

<input ng-model="input.value" name="password" type="text" type="password" autocomplete="off" id="pass" placeholder="请填写参数"/>

最有效的方法:autocomplete="off"  或者  autocomplete="new-password"  或者  autocomplete="false" 

posted @ 2018-08-01 09:40  ~西门紫凌~  阅读(6640)  评论(0编辑  收藏  举报