ASP中For...Next语句
...
<html>
<head>
<title>asp测试页面</title>
</head>
<body bgcolor=red>
循环1:<br>
<%
for COUNTER=1 To 3
response.write"循环..."&"<br>"
next
%>
——————————————————————<br>
循环2:<br>
<%
for COUNTER=1 To 3
response.write"循环数字为:"& counter &"<br>"
next
%>
——————————————————————<br>
循环3:<br>
<%
for COUNTER=0 To 10 step 5
response.write"循环数字为:"&counter&"<br>"
next
%>
——————————————————————<br>
循环4:<br>
<%
for COUNTER=100 To 0 step -10
response.write"循环数字为:"&counter&"<br>"
next
%>
——————————————————————<br>
</body>
</html>
<head>
<title>asp测试页面</title>
</head>
<body bgcolor=red>
循环1:<br>
<%
for COUNTER=1 To 3
response.write"循环..."&"<br>"
next
%>
——————————————————————<br>
循环2:<br>
<%
for COUNTER=1 To 3
response.write"循环数字为:"& counter &"<br>"
next
%>
——————————————————————<br>
循环3:<br>
<%
for COUNTER=0 To 10 step 5
response.write"循环数字为:"&counter&"<br>"
next
%>
——————————————————————<br>
循环4:<br>
<%
for COUNTER=100 To 0 step -10
response.write"循环数字为:"&counter&"<br>"
next
%>
——————————————————————<br>
</body>
</html>
发表评论
最新评论
- 暂时没有评论!