<input type="password" autocomplete="off" />
浏览器会提示用户保存密码的原因是type="password"的时候,浏览器就会弹出提示框,所以type不能设置为password。
可以将type设置为text,然后用设置这个标签style属性为 -webkit-text-security:disc; 这样输入的text会变为....)
<input type="text" style="-webkit-text-security:disc;" />