autocomplete="off" 不起作用解决方案
autocomplete="off" 不起作用解决方案
是因为input 没有设置name的原因
<form action="/example/html5/demo_form.asp" method="get" autocomplete="on">
First name:<input type="text" name="fname" /><br />
Last name: <input type="text" name="lname" /><br />
E-mail: <input type="email" name="email" autocomplete="off" /><br />
<input type="submit" />
</form>
https://www.w3school.com.cn/tags/att_input_autocomplete.asp
<form action="/example/html5/demo_form.asp" method="get" autocomplete="on">First name:<input type="text" name="fname" /><br />Last name: <input type="text" name="lname" /><br />E-mail: <input type="email" name="email" autocomplete="off" /><br /><input type="submit" /></form>