@aacassandra/vue-disable-autocomplete 中文文档教程
为什么?
这个插件解决了 chrome(或任何其他浏览器)不再支持自动完成属性的问题。 它只是忽略了属性,这就是我创建这个插件的原因。
如何使用
import DisableAutocomplete from '@aacassandra/vue-disable-autocomplete';
Vue.use(DisableAutocomplete);
HTML 属性
您应该将此属性autocomplete="off"
添加到要禁用自动完成的HTML 输入元素。 例如:
<input type="email" name="email" autocomplete="off">
Why?
This plugin solves the problem that chrome (or any other browser) doesn't support the autocomplete attribute anymore. It simply ignores the attribute, which is why i created this plugin.
How to use
import DisableAutocomplete from '@aacassandra/vue-disable-autocomplete';
Vue.use(DisableAutocomplete);
HTML attribute
You should add this attribute autocomplete="off"
to the HTML input elements you want to disable autocomplete. For example:
<input type="email" name="email" autocomplete="off">