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