主题:请大家帮忙这怎样解决
我用的是XP系统装IIS,做了一个例子,如下
[b]<html>
<head>
<title>IF语句</title>
</head>
<body>
<%
Dim myDate
myDate=#2/12/98#
if myDate <Now Then myDate = Now
Response.Write myDate
%>
</body>
</html>
[/b]以上的能够运行。
但又做了个例子,如下
[b]<html>
<head>
<title>IF语句4<title>
</head>
<body>
<%
Dim myDate,Word
myDate=#2/2/98#
if myDate<Now Then
myDate=Now
Word="all right!"
Else
Word="Game is over!"
End if
Response.Write myDate & Word
%>
</body>
</html>
这个不知道能不能运行,因为在浏览器上看不到输出。请问为什么会这样的?[/b]
[b]<html>
<head>
<title>IF语句</title>
</head>
<body>
<%
Dim myDate
myDate=#2/12/98#
if myDate <Now Then myDate = Now
Response.Write myDate
%>
</body>
</html>
[/b]以上的能够运行。
但又做了个例子,如下
[b]<html>
<head>
<title>IF语句4<title>
</head>
<body>
<%
Dim myDate,Word
myDate=#2/2/98#
if myDate<Now Then
myDate=Now
Word="all right!"
Else
Word="Game is over!"
End if
Response.Write myDate & Word
%>
</body>
</html>
这个不知道能不能运行,因为在浏览器上看不到输出。请问为什么会这样的?[/b]