Closed mic1on closed 9 months ago
function isOkVarChar(c) { return (/^[a-zA-Z0-9]$/).test(c); }
通过正则检查单个字符是否为正确的字符。
感谢大佬! LGTM!
通过正则检查单个字符是否为正确的字符。