JS實現密碼輸入框切換顯示和隱藏

js實現密碼輸入框切換顯示和隱藏 點擊eye圖標,實現密碼框顯示與隱藏切換 open() { var getPassword = document.getElementById(「password」); //判斷輸入框的類型:password或者text if (getPassword.type == 「password」) { getPassword.type = 「text」; this.pi
相關文章
相關標籤/搜索