if(!(/^[\u4e00-\u9fa5]+$/i).test(‘内容’)){
alert('不是汉字');
}
if(!(/[^\d]/g).test('content')){
alert('not eng');
}
php:汉字
preg_match('/^[\x{4e00}-\x{9fa5}]+$/u', $gtitle)
作者: Sjolzy
--EOF--