<html>
<head>
<title>检查</title>
<script lanuage="javascript">
function checkspace(tt)
{
var ww = tt.length;
var i=0;
while(i<ww)
{
 if(tt.charAt(i) == " ")
 {  
   alert("您输入的有空格!");
   break;
 }
 i++;
}
}
</script>
</head>
<body>
<form>
<input type="button" >
</form>
</body>
</html>

相关文章:

  • 2021-07-18
  • 2021-11-28
  • 2021-09-13
  • 2022-01-09
  • 2021-12-08
  • 2021-05-29
猜你喜欢
  • 2022-12-23
  • 2022-02-03
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案