Chrome自动填充未设置密码值

时间:2017-12-11 10:50:18

标签: javascript html google-chrome

Chrome自动填充未设置输入密码值

<input type="password" value="" name="password">

点击页面后,密码设置为正确的值

2 个答案:

答案 0 :(得分:2)

请检查一下:

旧解决方案

<form autocomplete="off">

新解决方案

<input style="display:none" type="password" name="fakepasswordremembered"/>

答案 1 :(得分:0)

试试这个:

<input type="password" autoComplete="off" id="" placeholder="Password"/>
相关问题