js_html_input中autocomplete="off"在chrom中失效的解決辦法


分享網上的2種辦法:

1-可以在不需要默認填寫的input框中設置 autocomplete="new-password"(已實測,有效)

網上咱沒有找到對其詳細解釋,但是發現163郵箱的登錄注冊是這么用的,

 

2-在會自動填充內容在form表單的第一個Input前添加一個隱藏的input  type="password"(待驗證):

<input type="password" style="display: none"> <!-- 用於禁止瀏覽器自動填充的 -->

 

參考網址:

https://blog.csdn.net/xw505501936/article/details/52129579

http://www.cnblogs.com/liughost/p/4531230.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM