调试运行
<html> <head> <title>重复执行(while)</title> </head> <body> <script language="javascript"> <!-- i = 5; while(i>0){ document.write("i=",i,"<br>"); i--; } //--> </script> </body> </html>