web开发中禁止浏览器自动填充用户名和密码
在input上添加autoComplete
- 普通文本框
<input type="text" autoComplete="off"/>
- 密码框
<input type="password" autoComplete="new-password"/>
在input上添加autoComplete
<input type="text" autoComplete="off"/>
<input type="password" autoComplete="new-password"/>