在form表单或者input使用autocomplete=”off”
<input type="text" name="name" autocomplete="off"/> <form action="demo.php" method="get" autocomplete="off"></form>
2.不让页面读取缓存数据
<meta http-equiv= "Pragma" content= "no-cache" /> <meta http-equiv= "Cache-Control" content= "no-cache" /> <meta http-equiv= "Expires" content= "0" />
3.type="password"的时候禁止自动填写密码
<input type="password" name="pwd" autocomplete="new-password"/>
微信扫码查看本文
发表评论