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>

猜你喜欢

转载自www.cnblogs.com/tanjiyuan/p/12294315.html
今日推荐