把type=password 改为type=text,再加上 onfocus="this.type='password'" autocomplete="off" 就可以了。
onfocus="this.type='password'"的意思是:只有聚焦的时候为密码格式
autocomplete="off" 的意思:把浏览器自动获取的值关掉
即:
即可
把type=password 改为type=text,再加上 onfocus="this.type='password'" autocomplete="off" 就可以了。
onfocus="this.type='password'"的意思是:只有聚焦的时候为密码格式
autocomplete="off" 的意思:把浏览器自动获取的值关掉
即:
即可