input标签在谷歌浏览器记住密码的自动填充问题

//使用autocomplete="new-password"
<Input type='password'  autocomplete="new-password"/>

这是一个新属性,兼容所有浏览器.

注意:如果用react的jsx时要写autoComplete="new-password",区分属性大小写

方法二:

 <input type='password' readonly onfocus="this.removeAttribute('readonly');" />
原文地址:https://www.cnblogs.com/firstcsharp/p/11076907.html