我的项目中某个页面忽然呈现多个input框主动填充浏览器贮存的账号密码,定位许久,寻源无果,只恶化寻解决之法
办法1
input
增加属性autocomplete="off"
H5官网属性,但 有效(chrome)
办法2
input
增加属性autocomplete="new-password"
百度寻得,说是网易邮箱登录明码框的玩法,然而 仍旧有效(chrome)
最终办法
页面最后面放两个暗藏input
<input style="display:none">
<input type="password" style="display:none">
还是stack比拟靠谱,理由如下
Chrome only autocompletes the first <input type="password">
and the previous <input>
发表回复