Chrome浏览器控制台Input elements should have autocomplete attributes (suggested: "current-password")

2019-04-3010119次阅读其它

Chrome浏览器控制台Input elements should have autocomplete attributes (input元素应具有autocomplete属性....)(suggested: "current-password"): (More info: https://goo.gl/9p2vKq)

解决方案:

<input autocomplete="off">
<input autocomplete="on">
  • off:表示控件的输入数据特别敏感(例如核武器的激活码); 或者它是一个永远不会被重用的值(例如银行登录的一次性密钥),因此用户每次都必须明确输入数据,而不是依靠UA用户代理预先填写它们的价值; 或者文档提供了自己的自动完成机制,并且不希望用户代理提供自动完成值。
  • on:关键字表示允许用户代理向用户提供自动完成值,但不提供有关用户可能要输入的数据类型的任何进一步信息。用户代理必须使用启发式方法来确定要建议的自动完成值。
     
上一篇: Chrome浏览器控制台[DOM] Password field is not contained in a form:   下一篇: Document​.create​Document​Fragment()文档片段节点  

Chrome浏览器控制台Input elements should have autocomplete attributes (suggested: "current-password")相关文章