var names = document.getElementById("names");
var pwds = document.getElementById("pwds");
function subtton(){
if(names.value == "" && names.value.length
==0 || pwds.value == ""&&pwds.value.length == 0){
return
false;
}else{
return true;
}
}
如何判断账号密码是否为空 登陆按钮点击无效,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/RBBiog/p/3736903.html