function IsDigit(cCheck) { return (('0' <= cCheck) && (cCheck <= '9')); }
if (IsDigit(cCheck)) { namemsg.innerHTML = "(登录名不能以数字开头!)"; }
怎么实现不了
if (IsDigit(cCheck)) { namemsg.innerHTML = "(登录名不能以数字开头!)"; }
怎么实现不了
var theforever_csdn1="a1";
var theforever_csdn2="11";
function theforever_csdn(str){
return /^(?![0-9])/.test(str)?'合格':'不合格';
}
alert(theforever_csdn(theforever_csdn1));
alert(theforever_csdn(theforever_csdn2));
</script>