- html5表單空間的新的屬性(autocomplete):autocomplete = 'new-password'
- 設置為type=“text”,獲取焦點的時候再改為type=“password” :onfocus="this.type='password'"
<input type="password" placeholder="請輸入密碼" autocomplete="new-password" >
<input type="text" placeholder="請輸入密碼" onfocus="this.type='password'">