验证汉字:
console.log(/^[\u2E80-\u9FFF]+$/.test("io"));//false console.log(/^[\u2E80-\u9FFF]+$/.test("中国"));//true原文链接:/regex/358352.html
验证汉字:
console.log(/^[\u2E80-\u9FFF]+$/.test("io"));//false console.log(/^[\u2E80-\u9FFF]+$/.test("中国"));//true原文链接:/regex/358352.html