Home > front end >  Element input? Prompt only support English and Chinese
Element input? Prompt only support English and Chinese

Time:10-23

El - input input? When validation fails prompt only support Chinese and English


Let reg1=/^ [\ u4e00 - \ u9fa5A - Za - z] + $///
in both English and Chinese

Let checkChineseEng=(rule, the value, the callback)=& gt; {
If (value & amp; & ! Reg1. Test (value)) {
The callback (new Error (' only support Chinese and English))
} else {
The callback ()
}
}

Rules:

{required: true, the message: 'please enter the construction unit, the trigger:' blur '},
{the validator: checkChineseEng, trigger: 'blur'}
]
Why dared ask bosses will be prompted to, how to solve?

CodePudding user response:

? , "Leon" di, pronunciation is "ang", radical is mesh
Online etc.

CodePudding user response:

Let checkChineseEng=(rule, the value, the callback)=& gt; {//
in both English and ChineseIf (value & amp; & ! Reg1. Test (value)) {
The callback (new Error (' only support Chinese and English))
} else {
The callback ()
}
}

Missed it

CodePudding user response:

Regular pass the/^ [\ u3400 - \ u4db5A - Za - z] + $/

CodePudding user response:

reference jio can reply: 3/f
regular pass the/^ [\ u3400 - \ u4db5A - Za - z] + $/

Input, you can enter? Not is this why

CodePudding user response:

In the regular... Didn't find different?

CodePudding user response:

reference 5 floor jio can reply:
in the regular... Didn't find different?

In the regular but some symbols will be verified and not rigorous

CodePudding user response:

"?" Word of Unicode for: \ u401a, not Jane traditional [\ u4e00 - \ u9fff] within the scope of the
Belongs to the CJK Unified Ideographs Extension, A location in the [\ u3400 - \ u4db5],
Use [\ u3400 - \ u4db5] other characters will not be verified
  • Related