谷歌浏览器页面中input禁止自动填充

版权声明:Hello,Bug https://blog.csdn.net/AdminPwd/article/details/90670120

平时使用的谷歌浏览器中,在登录页面是喜欢记住密码,方便调试,可是在添加页面或者修改页面时,头疼的事情就发生了,啊,谷歌浏览器会自动赋值,就很头痛

只需一步
加上autocomplete=“new-password”
比如

			        <!--   修改前             -->
                <input type="text" name="pwd" />
                    <!--   修改后             -->
                <input type="text" autocomplete="new-password" name="pwd" />

猜你喜欢

转载自blog.csdn.net/AdminPwd/article/details/90670120