清除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" 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM