<input type="checkbox" id="showPass" onclick="aaa();">顯示密碼
function aaa() { var passType = document.getElementById('pw').type; if(passType == "text"){ document.getElementById('pw').type = "password"; }else{ document.getElementById('pw').type = "text"; } }
|
新聞熱點
疑難解答