js 正则判断字符串是否为字母或数字
js 正则判断字符串是否为字母或数字
function checknum(value) {
var Regx = /^[A-Za-z0-9]*$/;
if (Regx.test(value)) {
return true;
}
else {
return false;
}
}
浙公网安备 33010602011771号