JS input 输入框只能输入 字母和汉字

         if (!/^[a-zA-Zu4e00-u9fa5]+$/.test(this.name)) {
                    return this.$refs.uToast.show({
                        title: '请输入中文或英文'
                    })
                }
/^[a-zA-Zu4e00-u9fa5]+$/                // 正则表达式
原文地址:https://www.cnblogs.com/zhaohui-116/p/13726486.html