<head>
<title>验证只能为中文</title>
<script language="javascript">

function check(){
var t = document.forms[0].elements["text1"];
if (t.value != t.value.replace(/[^\u4E00-\u9FA5]/g,'')){
   alert("不全是中文");
}
}
</script>
</head>
<body>
<form />
</form>
</body>
</html>

相关文章:

  • 2022-12-23
  • 2021-12-11
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-01-12
猜你喜欢
  • 2021-11-02
  • 2021-12-18
  • 2022-12-23
  • 2022-01-31
  • 2022-02-03
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案