function pswproof(){
if(!Rgex.test(loginform.PassWord.value)) {
Psw.className = 'error';
Msg.style.display = 'block';
return false;
} else {
Psw.className = 'correct';
return true;
}
}
function userproof() {
if(!Rgex.test(loginform.UserName.value)) {
User.className = 'error';
Msg.style.display = 'block';
return false;
} else {
User.className = 'correct';
return true;
}
不知道为什么我在浏览器运行时,输入正确格式还是有一个一直显示错误,难道是闭包吗?
幕布斯8224246
萧鸣boois
目訫
慕的地6079101
Keyro
我吃西瓜很快
随时随地看视频慕课网APP