Judging whether it is input to Chinese characters

xiaoxiao2021-04-10  549

I want to judge if the value of the string is Chinese or how is the letter?

-------------------------------------------------- -------------

A bit wrong:

IF (/[1x00-/xff]/g.test(s)) ALERT ("With Chinese characters");

Else Alert ("all characters");

or:

If (/[/x00-/xff]/g.test (s)) ALERT ("contains characters");

Else Alert ("all is Chinese characters");

转载请注明原文地址:https://www.9cbs.com/read-133492.html

New Post(0)