在非登錄頁面如果有密碼輸入框的話,我們也應該採取密文輸入。如果同時,選擇了記住密碼,那麼系統內部的密碼輸入框就會自動填充賬號和密碼,火狐瀏覽器沒有這個問題。
試了幾個解決方案
一、 <input autocomplete="off"> 無效
二、
<input style="display:none" type="text" name="text"/>
<input style="display:none" type="password" name="password"/> 無效
三、
<input autocomplete="new-password"> 有效