我正在使用 Vuetify 的 v-text-field,并且我想禁用自动完成功能。我有
autocomplete="false"
,这是我在网上看到的正确语法,但我仍然得到自动完成建议。有什么建议吗?
<v-text-field
outlined
placeholder="Search"
autocomplete="false"
v-model="searchBar"
@input="search()"
:hint="searchResults.length + ' ' + this.searchResultTag + ' found'"
></v-text-field>
在
v-text-field
中使用autocomplete =“off”:
<v-text-field
autocomplete="off"
/>
autocomplete="null" 在
v-text-field
为我工作
(但 autocomplete="off" 并没有...)
<v-text-field
autocomplete="null"
/>
你也可以尝试一下