let reg = new RegExp(/ud83c[udf00-udfff]|ud83d[udc00-ude4f]|ud83d[ude80-udeff]/) if (reg.test(val)) { tip = '不能输入表情符号' Vue.$vux.toast.text(tip) return false }