<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"; } }
新闻热点
疑难解答