日期:2014-05-16  浏览次数:20565 次

JavaScript问题
<html>
<head>
<title>连接两个数组</title>
</head>
<body>
<script language="javascript">
<!--
  a = new Array("a","b","c");
  b = new Array(1,2,3);
  c = a.concat(b);
  for(int i=0; i<c.length; i++){
  document.write(c[i],"<br>");
  }
//-->
</script>
</body>
 </html>

为什么会有错误,错误如下
网页错误详细信息

用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
时间戳: Thu, 3 Apr 2008 03:38:40 UTC


消息: 缺少 ';'
行: 11
字符: 12
代码: 0
URI: file:///F:/html/html_05.htm



------解决方案--------------------
把for循环里的int去掉