vue 解决密码框 input 中type=“password“时,chrome浏览器会回显之前保存的用户名和密码
现象input的type="password"时,会出现之前保存的用户名和密码回显出来解决办法给input加上如下属性 <el-input v-model=xxx type="password" autocomplete="new-password" readonly onfocus="this.removeAttribute('readonly');this.type='password'"placeholder="password" />...
原创
2021-01-15 17:01:58 ·
3258 阅读 ·
0 评论