Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个文本框,用于输入安全问题的答案。当我再次返回该页面时,谷歌浏览器或其他此类浏览器的自动填充功能会提示我之前对该文本框的输入,我想禁用它。我想使用 JSP 或 javascript 来做到这一点。
如果您使用的是 HTML5 并且这是在 a 中<form>,您可以查找autocomplete="off"整个<form>或特定的属性<input />。它将禁用现代浏览器填写信息。
<form>
autocomplete="off"
<input />