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

原文地址:https://www.cnblogs.com/lxhbky/p/8659687.html