js_html_input中autocomplete="off"在chrom中失效的解决办法


分享网上的2种办法:

1-可以在不需要默认填写的input框中设置 autocomplete="new-password"(已实测,有效)

网上咱没有找到对其详细解释,但是发现163邮箱的登录注册是这么用的,

 

2-在会自动填充内容在form表单的第一个Input前添加一个隐藏的input  type="password"(待验证):

<input type="password" style="display: none"> <!-- 用于禁止浏览器自动填充的 -->

 

参考网址:

https://blog.csdn.net/xw505501936/article/details/52129579

http://www.cnblogs.com/liughost/p/4531230.html


免责声明!

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



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