JavaScript控制输入框只能输入中文,英文和数字的组合,其他字符不能输入的校验

1 if(!/^[A-Za-z0-9u4e00-u9fa5]+/.test(value)){
2   alert('不能输入非法字符')  
3 }
原文地址:https://www.cnblogs.com/llcdxh/p/9505956.html