Ctrl+/
IE11
F11
ESC
PgUp
PgDn
<html>
<head>
<title>do while循环</title>
</head>
<body>
<center><h2>测试do while循环</h2></center>
<hr>
<script language="JavaScript">
// 变量声明
var i = 1;
var intTotal = 0;
// 循环语句
do{
document.write("数字: " + i + "<br>");
intTotal += i;
i++;
} while (i <= 5);
document.write("<hr>总和: " + intTotal + "<br>");
</script>
</body>
</html
CSS代码...
xxxxxxxxxx
JS代码...