您的位置:首页 > 其它

清除火狐中存在的input、select的缓存

2016-06-29 15:31 274 查看
方法一:

在不想使用缓存的input 中添加 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>

在ie中select缓存问题,()

可以在页面加载时添加js代码控制select默认选定项

document.getElementById("das").selectedIndex = 0;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: