禁用Chrome自动填充 - Disabling Chrome Autofill

问题:

This post is a Community Wiki . 这篇文章是社区维基 Edit existing answers to improve this post. 编辑现有答案以改善此职位。 It is not currently accepting new answers. 它当前不接受新的答案。 Learn more . 了解更多

I have been running into issues with the chrome autofill behavior on several forms. 我一直在遇到几种形式的Chrome自动填充行为问题。 chrome

The fields in the form all have very common and accurate names, such as "email", "name", or "password", and they also have autocomplete="off" set. 表单中的全部字段都有很是通用且准确的名称,例如“电子邮件”,“名称”或“密码”,而且还设置了autocomplete="off" 后端

The autocomplete flag has successfully disabled the autocomplete behavior, where a dropdown of values appear as you start typing, but has not changed the values that Chrome auto-populates the fields as. 自动完成标记已成功禁用了自动完成行为,该行为会在您开始键入时出现一个下拉列表,但并未更改Chrome自动将字段填充为的值。 app

This behavior would be ok except that chrome is filling the inputs incorrectly, for example filling the phone input with an email address. 这种行为是能够的,除了chrome没法正确填写输入内容(例如,用电子邮件地址填充电话输入内容)。 Customers have complained about this, so it's verified to be happening in multiple cases, and not as some some sort of result to something that I've done locally on my machine. 客户对此有所抱怨,所以已证明它是在多种状况下发生的,而不是我在计算机上本地完成的操做的某种结果。 post

The only current solution I can think of is to dynamically generate custom input names and then extract the values on the backend, but this seems like a pretty hacky way around this issue. 我能想到的惟一当前解决方案是动态生成自定义输入名称,而后在后端提取值,但这彷佛是解决此问题的一种很怪异的方法。 Are there any tags or quirks that change the autofill behavior that could be used to fix this? 是否有任何可更改自动填充行为的标记或怪癖可用来解决此问题? ui


解决方案:

参考一: https://stackoom.com/question/142Et/禁用Chrome自动填充
参考二: https://oldbug.net/q/142Et/Disabling-Chrome-Autofill
相关文章
相关标签/搜索