本文主要是介绍input 警告[DOM] Input elements should have autocomplete attributes (suggested: “new-password“),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
使用vant框架里面的form表单 会报这个错误 直接在van-field里加上 **autocomplete=“off”**就不报错了
<van-fieldautocomplete="off"v-model="form.nowPwd":type="type":name="$t('login.password')":label="$t('choiceOrder.newPassword')":placeholder="$t('login.loginPassword')"clearable:rules="[{ validator, message: $t('login.limited') }]"><template #button><svg-iconv-show="form.password && type === 'password'"@onClick="type = 'text'"icon-class="eye_open"/><svg-iconv-show="form.password && type === 'text'"@onClick="type = 'password'"icon-class="eye_close"/></template></van-field>
这篇关于input 警告[DOM] Input elements should have autocomplete attributes (suggested: “new-password“)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!