如何禁用 Chrome 自动完成功能? [英] How to disable Chrome autocomplete feature?

查看:50
本文介绍了如何禁用 Chrome 自动完成功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们希望在 React JavaScript 应用程序的 Chrome 浏览器中禁用自动完成.我们已经尝试了一系列互联网上可用的解决方案,但没有任何效果.autoComplete=off 不可靠,其他方式也是如此.

We want to disable autocomplete in Chrome browser in our React JavaScript application. We have tried a bunch of solutions available on the Internet but nothing worked. autoComplete=off is not reliable and so are other ways.

目前这对我们来说真的很重要,所以您能否建议我们使用 React JavaScript 在 Chrome 中禁用自动完成的万无一失的方法?

This is really important for us at this moment so can you please suggest us a foolproof way to disable autocomplete in Chrome using React JavaScript?

其次,我们为我们的文本框使用了一个通用的控件/组件,并在任何地方使用它们

Secondly, we are using a common control/component for our text boxes and using them everywhere

推荐答案

执行 autocomplete="new-password" 以禁用自动完成.

Do autocomplete="new-password" to disable autocomplete.

这篇关于如何禁用 Chrome 自动完成功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆