清除input文本内容

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

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>  
相关文章
相关标签/搜索