input警告: Input elements should have autocomplete attributes (suggested: "current-password"): (More info 当input的type="password" 时,在浏览器的console会出现以下警告 虽然这些警告不会影响代码的运行,但终归是个警告,最好处理一下,处理方法我们可以在input中加上autocomplete这个属性 加上之后,我们在看下浏览...
autocomplete 除了 on、off 之外,还有很多参数:name、email、username、new-password、current-password、street-address 等等; 当input type 为 password 但 autocomplete 为 new-password, 即可解决浏览器自动填充问题,浏览器将当前输入框识别为新密码
name="new-password":用于新密码输入字段。 name="current-password":用于当前密码输入字段(通常用于验证身份)。 3. 描述在不同浏览器中autocomplete属性的兼容性情况 autocomplete 属性在大多数现代浏览器中都有较好的支持,包括 Chrome、Firefox、Safari、Edge 等。然而,不同浏览器对特定名称值对的支持程度可能有所不...
在过去,autocomplete支持的属性值比较单纯,就 on 和 off,autocomplete支持的属性值有好几十个。 对,你没看到,有好几十个,容易理解的有username,new-password,current-password等,长得像妖魔鬼怪的像是cc-name,bday-day,impp等。 完整属性值大家可以参见MDN文档。 算了,想了想,还是自己整理个表格吧,看起来方便些。
浏览器console 报 [DOM]Inputelementsshouldhaveautocompleteattributes(suggested:"current-password"):解决: 尝试改变 到 自动完成功能可让 Web 开发人员指定用户代理在填写表单字段值时提供自动帮助的权限(如果有),以及向浏览器提供有关字段中预期信息类型的指导。 参考https://stackoverflow.com/questions/54970352...
} document.getElementById('submitbutton').disabled = !cansubmit; } I use an WkWebView to display the page. It works fine when manually entering user name or password. However, if I use the autocomplete function of iOS to fill in user name...
3812 Chrome浏览器控制台Input elements should have autocomplete attributes (suggested: "current-password") 2019-10-10 11:50 −Chrome浏览器控制台出现Input elements should have autocomplete attributes (suggested: "current-password") 解决方案:
1421 Chrome浏览器控制台Input elements should have autocomplete attributes (suggested: "current-password") 2019-10-10 11:50 −Chrome浏览器控制台出现Input elements should have autocomplete attributes (suggested: "current-password") 解决方案:
autoComplete: 'new-password', // disable autocomplete and autofill }} /> )} /> ); } interface CountryType { code: string; label: string; phone: string; suggested?: boolean; } // From https://bitbucket.org/atlassian/atlaskit-mk-2/raw/4ad0e56649c3e6c973e226b7efaeb28cb240ccb0/packag...
input 使用到 password 类型的输入框时,控制台会提示警告。 出现原因:未添加autocomplete 属性造成的。 autocomplete 用途: 规定输入字段是否应该启用自动完成功能。清除input框输入存留历史值,防止下拉历史值显示。 自动完成允许浏览器预测对字段的输入。当用户在字段开始键入时,浏览器基于之前键入过的值,应该显示出在字段...