各位高手帮我看看这段代码问题出在那里?
请编写代码,在页面上显示如下图形。
*
**
***
****
*****<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>demo1</title>
</head>
<script language="javascript">
var i,j;
for(i=1;i<=5;i++)
for(j=1;j<=i;J++)
{document.write("*");}
{document.write(<br>);}
</script>
<body>
</body>
</html>
请编写代码,在页面上显示如下图形。
*
**
***
****
*****<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>demo1</title>
</head>
<script language="javascript">
var i,j;
for(i=1;i<=5;i++)
for(j=1;j<=i;J++)
{document.write("*");}
{document.write(<br>);}
</script>
<body>
</body>
</html>
解决方案 »
- Firefox怎么不支持鼠标的双击事件?
- 半角符号的正则表达式
- 如何实现前台显示和实际提交的数据不同
- firefox 下使用history.back();location.reload()不正常
- 这种 下拉式导航菜单 是怎么做的呢?
- [再发日期问题]已知一个日期,如何得到以这个日期为准6天前的具体日期????
- 请问怎样对一个TYPE="file"的input框付值?在先等待。。
- showModelessDialog问题
- node.js 操作mongodb 为什么没返回?
- 写分页代码的时候,发现这个问题 ,怎么都解决不了,请问各位大佬能帮忙看看吗?
- 急!如何用JS像指定的HTML块内输出内容啊?
- 各位各位, Look Here! 请帮帮忙哦!!
for(j=1;j <=i;J++) {
document.write("*");}
document.write( <br>);}
for(j=1;j <=i;J++) { 应该为
for(j=1;j <=i;j++) {
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>demo1 </title>
</head>
<script language="javascript">
var i,j;
for(i=1;i<=5;i++){
for(j=1;j<=i;j++) document.write("*");
document.write("<br>");
}
</script>
<body>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
</head> <body>
<script type="text/javascript">
<!--
var i,j;
for(i=1; i<=5; i++)
{
for(j=1; j<=i; j++)
{
document.write("*");
}
document.write("<br />");
} //-->
</script>
</body>
</html>
Web 开发常用手册JScript语言参考.rar
http://download.csdn.net/source/308916DHTML参考手册.rar
http://download.csdn.net/source/308913样式表中文手册.chm
http://download.csdn.net/source/304124