按照老师这样书写报错了。提示Uncaught TypeError: Failed to execute 'setAttribute' on 'Element': 2 arguments required, but only 1 present. at HTMLInputElement.pwd1.onkeyup
pwd1.onkeyup = function(){
// 大与5个字符为“中”
if(this.value.length > 5){
em[1].className = "active";
pwd2.removeAttribute("disabled");
pwd2_msg.style.display = "block";
}else{
em[1].className = "";
pwd2.setAttribute("disabled");
pwd2_msg.style.display = "none";
}
// 大与10个字符为“强”
if(this.value.length > 10){
em[2].className = "active";
}else{
em[2].className = "";
}
}