问题描述
我有一个使用新用户名&的网页密码作为输入.对于脚本,我使用的是AngularJS.
I have a webpage taking a new user name & password as input. For scripting, I am using AngularJS.
<div class="form-group">
<input ng-model="prc.userName" placeholder="User Name" type="text" class="form-control" autocomplete="nope" required autofocus />
</div>
此输入框总是自动填充的,我不希望它自动填充.
This input box always gets auto-filled, I don't want it to get auto-filled.
之前审核过的问题:如何您是否禁用了Web表单字段/输入标签上的浏览器自动完成功能?
// These attributes do not work
autocomplete="off"
autocomplete="false"
我的chrome版本:73.0.3683.103版(正式内部版本)(64位)
My chrome version: Version 73.0.3683.103 (Official Build) (64-bit)
我该怎么做?
推荐答案
是的,这是一个已知的错误,可能会很烦人.由于某些原因, autocomplete ='false'
和 autocomplete ='off'
在chrome中根本不起作用.
Yes this is a known error and it can be really annoying. for some reason autocomplete='false'
and autocomplete='off'
aren't working at all in chrome.
摆脱它的唯一已知方法是使用 autocomplete ='new-password'
,这将停用自动完成功能!
The only known method to get rid of it is to use autocomplete='new-password'
, this will deactivate the autocomplete!
欢呼声
这篇关于禁用HTML中的输入标签自动填充?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!