//使用autocomplete="new-password" <Input type='password' autocomplete="new-password"/>
这是一个新属性,兼容所有浏览器.
注意:如果用react的jsx时要写autoComplete="new-password"
,区分属性大小写
方法二:
<input type='password' readonly onfocus="this.removeAttribute('readonly');" />
//使用autocomplete="new-password" <Input type='password' autocomplete="new-password"/>
这是一个新属性,兼容所有浏览器.
注意:如果用react的jsx时要写autoComplete="new-password"
,区分属性大小写
方法二:
<input type='password' readonly onfocus="this.removeAttribute('readonly');" />
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。