关于while...wend 怎么有不同的结果
我是新手,又有问题了 麻烦大家 下面是两个代码 怎么不一样吗 怎么其中一个不通啊
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>while ....wend例</title>
<script language="vbscript">
sub mybutton_onclick()
dim char
const ch="?"
counter=0
msg="请输入一个字符"
char=inputbox(msg)
while char<>ch
counter=counter+1
char =inputbox(msg)
wend
msgbox"输入的字符个数为:"&counter
end sub
</script>
</head>
<body>
<input type="button" name="mybutton" value="while wend 例"〉
</body>
</html>
<html>
<head>
<title>你输吧</title>
<script language="vbscript">
sub mybutton_onclick()
dim m
n=895
counter=0
msg="请输入一个数字,看看咱们的缘分"
m=inputbox(msg)
while m<>n
counter=counter+1
m=inputbox(msg)
wend
msgbox"输入的字符个数为:"&counter
end sub
</script>
</head>
<body>
<input type="button" name="mybutton" value="输入">
</body>
</html>