这时候我们可能会在 input上 加上 autocompleted=“off” 这个属性来阻止input被自动填充。
但是有时候却不管用,因为浏览器已经很智能的支持密码保存了。<input placeholder=“请输入密码” id=“password” name=“password” type=“text” autocomplete=“off” spellcheck=“false” οnfοcus="this.type=‘password’ />
这时候我们还可以到密码框input上加一个属性:autocomplete=“new-password”
<input type="password"name=“password” autocomplete=“new-password” />