zoukankan      html  css  js  c++  java
  • input禁用缓存

    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" /> 

  • 相关阅读:
    注意
    被虐的很惨
    在cmd中可以运行java,但是不能用javac
    Linux常用命令
    安装JDK和eclipse
    重装win7
    小希的迷宫
    并查集——The Suspects
    BFS宽度优先搜索
    括号匹配
  • 原文地址:https://www.cnblogs.com/gerry/p/10435105.html
Copyright © 2011-2022 走看看