清除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>  
相關文章
相關標籤/搜索