You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
188 B
Plaintext

function isTrueName(s) {
var patrn = /^[a-zA-Z]{1,30}$/;
if (!patrn.exec(s.value))
{
alert('非法的用户名格式.');
return false;
}
return true
}