Firefox 在重新加载时保留表单数据

2024-04-09

I have a big problem with the functionality in Firefox that keeps data that the user have filled in on reload F5. If i use Ctrl+F5 the forms are cleared and this is great. My problem is that not all my users know that this is what they have to do to force the input cleanup. Is there a way in the html or response headers to tell Firefox to not keep the data in the forms?


只需添加autocomplete="off"根据您的意见,您将解决问题。

<input type="text" autocomplete="off">

jQuery 在所有输入和文本区域上解决这个问题

$('input,textarea').attr('autocomplete', 'off');
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Firefox 在重新加载时保留表单数据 的相关文章

随机推荐