SoFunction
Updated on 2025-04-06

Implement the form to verify whether it is Chinese through regular expression


// Check whether it is Chinese
function isChn(str){
var reg = /^[u4E00-u9FA5]+$/;
if(!(str)){
return false;
}
return true;
}