遇到个问题:
chrome浏览器选择记住密码后,如何避免对所有input标签进行自动填充?
看了下网上的解决方案,比如 autocomplete="off",发现基本上都不生效,没办法,只能简单粗暴一把, 增加了一个空的 <input type="password" />
<input type="password" name="" style="position: absolute;left: -10000px;top: -10000px;">
需要注意的是不能将这个空的 input 设置 display:none; 否则该方案不生效!