1.忽悠瀏覽器摄职。
<input type="text" style="display: none;" name="xx">
<input type="password" style="display: none;" name="xx">
2.把input type=”password” 改成 input type=”text” 并在后面加上 onfocus=”this.type=’password'”
3.在文檔加載完成后將密碼及用戶輸入框設(shè)置為空
4.使用html5的屬性 (<input type="password" name="pass" autocomplete="off">)但是這種方案不兼容某些Chrome朗鸠、Firefox;