浏览器这功能在登录的时候挺好用的,但是在注册和管理的时候就很难受了
所以
在普通的input上直接off就行了
<input type="password" autoComplete="off"/>
而在elementui上使用autoComplete="off"是没用的 得使用new-password
<el-input v-model="form.password" show-password auto-complete="new-password"></el-input>
本文探讨了在网页注册和管理界面中禁用浏览器自动填充密码功能的方法。针对普通input元素,通过设置autocomplete属性为off即可实现。但在ElementUI框架下,需使用new-password作为autocomplete属性值。
浏览器这功能在登录的时候挺好用的,但是在注册和管理的时候就很难受了
所以
在普通的input上直接off就行了
<input type="password" autoComplete="off"/>
而在elementui上使用autoComplete="off"是没用的 得使用new-password
<el-input v-model="form.password" show-password auto-complete="new-password"></el-input>
2676
1473