标题:新手学习ASP,请大家指点
取消只看楼主
带脚镣跳舞
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2010-5-20
结帖率:100%
已结贴  问题点数:20 回复次数:0 
新手学习ASP,请大家指点
<title>DoLoop.asp</title>
<body bgcolor="#FFFFFF">

<p>请将今年到本月为止的每个月份的销售结算记录填写在本页之上。</P>

<%
counter = 1
thismonth = month(now())
Do while counter < thismonth + 1
response.write " " & counter & " 月份 : "
response.write "______________________________" & "<br><br>"
If counter >13 then
exit do
end if
counter = counter+1
Loop
%>
<hr>
</body>
</html>
输入结果如下

请将今年到本月为止的每个月份的销售结算记录填写在本页之上。

1 月份 : ______________________________

2 月份 : ______________________________

3 月份 : ______________________________

4 月份 : ______________________________

5 月份 : ______________________________


response.write 输出的这两句
"" & counter & " 月份:"  这个看不明白

1、为何要双引号
2、&这个符号是干嘛

搜索更多相关主题的帖子: ASP 学习 
2010-05-21 21:50



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-307649-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.568710 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved