如何禁用自动完成输入类型密码?不是工作自动完成= "off"



你好,在谷歌chrome上自动完成对我不起作用。还有什么方法可以关闭密码字段的自动完成??我正在使用Vue

您必须在表单字段中使用"form"标记,并为表单和密码输入标记设置自动完成。

<form action="" autocomplete="off">
<label for="username">username:</label>
<input type="text" id="username" name="username"><br><br>
<label for="pass">Last name:</label>
<input type="password" id="pass" name="pass" autocomplete="off"><br><br>
<input type="submit">
</form>

最新更新