【问题标题】:Force Chrome AutoFill to use Heuristic Type?强制 Chrome 自动填充使用启发式类型?
【发布时间】:2016-06-07 02:51:40
【问题描述】:

我在使用 Google Chrome 将名称字段解释为与自动填充相关的电子邮件字段时遇到问题。

查看自动填充预测,我可以看到启发式类型正确检测到类型“名称”,但 Google Chrome 服务器奇怪地将此字段确定为电子邮件类型:

有没有办法强制谷歌浏览器使用启发式类型而忽略服务器类型?

【问题讨论】:

  • 您是如何从 Google Chrome 服务器获取启发式类型信息的?

标签: google-chrome autofill


【解决方案1】:

我一直无法弄清楚为什么服务器类型以 EMAIL_ADDRESS 的形式返回,但我能够通过将 autocomplete 属性设置为 name 来强制使用该类型:

<input type="text" autocomplete="name" />

Google Developer 的网站有更多详细信息:https://developers.google.com/web/updates/2015/06/checkout-faster-with-autofill?hl=en

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-01-15
    • 1970-01-01
    • 2019-04-10
    • 2015-12-27
    • 2013-03-22
    相关资源
    最近更新 更多