[Html] 瀏覽器控制台警告錯誤[DOM] Password field is not contained in a form:或者是[DOM] Input elements should have autocomplete attributes (suggested: “current-password”):

前端編寫代碼時,查看瀏覽器控制台會出現的警告錯誤[DOM] Password field is not contained in a form:

或是

1.出現警告錯誤[DOM] Password field is not contained in a form:

解決方法:在input標籤外添加上form,如下方程式碼

錯誤訊息:
[DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) 
<input type=​"password" id=​"PassWord" style=​"width:​ 100px;​" required>​

解決方法:
<from>
使用者帳號:<input type="email" id="MailId" value="" style="width: 130px;" placeholder="demo@mail.com" required>密 碼: <input type="password" id="PassWord" style="width: 100px;" required>
</from>

2.出現警告錯誤[DOM] Input elements should have autocomplete attributes (suggested: “current-password”):

解決方法:添加placeholder=”請輸入密碼” autocomplete=”off”,如下方程式碼

錯誤訊息:
[DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) <input type=​"password" id=​"PassWord" style=​"width:​ 100px;​" required>​

解決方法:
<from>
使用者帳號:<input type="email" id="MailId" value="" style="width: 130px;" placeholder="demo@mail.com" required>密 碼: <input type="password" id="PassWord" placeholder="請輸入密碼" autocomplete="off" style="width: 100px;" required>
</from>

如果有什麼問題,也可以在下方留言處與我們分享,感謝您!!

手刀試用=>蝦皮對帳王

手刀試用=>康捷雲端ERP

相關文章

👉 進出貨一覽表 簡單王 操作步驟詳解

👉 簡單王-進出貨匯入上傳工具 操作步驟詳解

👉 蝦皮對帳王-蝦皮對帳結果一覽表-為什麼要對帳?無對應???

👉 蝦皮對帳王-對帳原理分析-有訂單,有撥款だいじょうぶ(大丈夫);有訂單,沒撥款 歐NO~~~~~!!!

[蝦皮服務] 訂單完成後什麼時候能夠收到款項呢?

期待您的留言

Comments

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *