+ -
当前位置:首页 → 问答吧 → asp do while循环延时的问题

asp do while循环延时的问题

时间:2011-07-20

来源:互联网

现有一个循环
do while not rs.eof
  response.write(rs("NewsID"))
if not rs.eof then rs.movenext
loop
执行的时候是没有延时的
现在想每隔100毫秒执行一次循环,直到循环终止,咋办?

作者: gkyu98   发布时间: 2011-07-20

http://dlstu.cn/code/article/ASP/908.htm

作者: yaxiya   发布时间: 2011-07-20

VB.NET code
ms = timer*1000
nxt = ms+100
count = 0
do while not rs.eof
if timer*1000 >= nxt then
  response.write(rs("NewsID"))
nxt = nxt + 100
count = count + 1
end if

if not rs.eof then rs.movenext
loop

作者: aspwebchh   发布时间: 2011-07-20

这个不错,但需要循环多次

引用 1 楼 yaxiya 的回复:
http://dlstu.cn/code/article/ASP/908.htm

作者: gkyu98   发布时间: 2011-07-20