[DOM] Input elements should have autocomplete attributes (suggested: “current-password“): (More info

[DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://www.chromium.org/developers/design-documents/create-amazing-password-forms)

意思是:

[DOM]输入元素应具有自动完成属性(建议使用:“当前密码”):(更多信息:https://www.chromium.org/developers/design-documents/create-amazing-password-forms)<输入类型=​“密码”>

其实这个也不算错误 不怎么影响使用 但是在控制台看着有点难受

警告代码:

密码:

添加一个 autocomplete 属性为off

密码:

警告解决啦~~~

借鉴了(16条消息) input 警告[DOM] Input elements should have autocomplete attributes (suggested: "new-password")_绿叶葱花的博客-CSDN博客感谢博主~

你可能感兴趣的:(前端,vue.js,html)