代码示例:(标识:vbst_dowhile)
<html>
<body>

<script type="text/vbscript">
i=0
do while i < 10
  document.write(i & "<br />")
  i=i+1
loop
</script>

</body>
</html>
运行结果: