阅读背景:

JS演示循环语句的用法

来源:互联网 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>无标题文档</title>
<script language="javascript">
	document.write("<h2 align=center>打印倒金字塔直线</h2>");
	var i=25;
	while (i>0)
	{
		document.write("<HR align=center width="+i+"%>");
		i=i-5;
		}
	for(var j=5;j<30;j=j+5)
		document.write("<HR align=center width="+j+"%>");

</script>
</head>

<body>
</body>
</html><html>
<head>
<meta http-equiv="Content-Type" c



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: