消除瀏覽器對input輸入框的自動填充

針對chrome與firefox內核

<input type='text' style='display:none'> <!-- 針對firefox -->
用戶名:<input type='text' autocomplete='off'>
密碼:<input type='password' autocomplete='new-password'>

<input type='password' autocomplete="new-password" style="" readonly onfocus="this.removeAttribute('readonly');" onblur="this.setAttribute('readonly',true);" />>

  

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章