input框 清除缓存

方法一: 在不想使用缓存的input中添加 autocomplete="off"

Eg:
一:<input type="text"  autocomplete="off" />
二:<input type="text  autocomplete="on" />


方法二: 如果整个表单元素都不使用autocomplete功能的话,在 input 所在的form标签中添加 autocomplete="off"

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

 

posted @ 2020-02-11 11:31  我需要一杯水  阅读(1287)  评论(0编辑  收藏  举报