input 的属性autocomplete 默认为on
其含义代表是否让浏览器自动记录之前输入的值
很多时候,需要对客户的资料进行保密,防止浏览器软件或者恶意插件获取到
可以在input中加入autocomplete="off" 来关闭记录
方法一: 
在不想使用缓存的input中添加 autocomplete="off"
eg: <input type="text" autocomplete="off" name="test" />

方法二: 
在 input 所在的form标签中添加 autocomplete="off"; 
eg:
<form action="#" autocomplete="off">
<input type="text" autocomplete="off" name="test" />
</form>

方法三  不让页面读取缓存数据

<meta   http-equiv= "Pragma"   content= "no-cache" /> 
<meta   http-equiv= "Cache-Control"   content= "no-cache" /> 
<meta   http-equiv= "Expires"   content= "0" /> 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2021-12-03
  • 2021-08-01
  • 2021-11-25
  • 2021-10-07
猜你喜欢
  • 2021-09-14
  • 2022-12-23
  • 2021-10-25
  • 2019-09-20
  • 2021-09-19
  • 2021-07-13
  • 2021-12-05
相关资源
相似解决方案