JavaScript form verification whether it is Chinese, determine whether an input is Chinese, and implement it through regular expression.
Copy code code as follows:
// Check whether it is Chinese
Function iSchn (STR) {
var reg = /^[u4e00-u9fa5]+$ /;
if (! reg.Test (STR)) {
Return false;
}
Return true;
}