不想让ff缓存input的值,有2种方法:
方法一: 在不想使用缓存的input 中添加 autocomplete="off"; eg: <input type="text" autocomplete="off" name="test" />
方法二: 在 input 所在的form 标签中添加 autocomplete="off"; eg: <form action="#" autocomplete="off">
本文介绍两种方法来防止Firefox浏览器缓存input值:一种是在input元素中直接设置autocomplete属性为off;另一种是在包含该input元素的form标签中设置autocomplete属性为off。
不想让ff缓存input的值,有2种方法:
方法一: 在不想使用缓存的input 中添加 autocomplete="off"; eg: <input type="text" autocomplete="off" name="test" />
方法二: 在 input 所在的form 标签中添加 autocomplete="off"; eg: <form action="#" autocomplete="off">
3819

被折叠的 条评论
为什么被折叠?