清除input文本内容

1、在不想使用缓存的input中添加

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

2、在 input 所在的form标签中添加

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

  

原文地址:https://www.cnblogs.com/hq123/p/6789185.html