1、在form表单或者input中使用autocomplete=”off”
但是有时候却不管用,因为浏览器已经很智能的支持密码保存了。
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”时禁止自动填充密码的方法有两种:
(1)去掉input的name和id属性(不推荐)
(2)加上autocomplete="new-password"属性
来自北京市的用户(2016-01-06)
这是匿名评论的内容这是匿名评论的内容,这是匿名评论的内容这是匿名评论的内容这是匿名评论的内容这是匿名评论的内容这是匿名评论的内容这是匿名评论的内容。