javascript验证汉字问题var str=document.getElementById("name").valuevar reg = ^[u4e00-u9fa5]+$iif (!reg.test(str)) {alert("请2023-04-05JavaScript340