html禁止清除input文本输入缓存的两种方法

方法一:

<input type="text" autocomplete="off" name="test" />  

  

方法二:

 在 input 所在的form标签中添加

<form action="#" autocomplete="off">  
  <input type="text" autocomplete="off" name="test" />  
</form>  

  

原文地址:https://www.cnblogs.com/lijianhong90/p/14767112.html