加载中...

连结两个数组


调试运行

<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(i=0;i<c.length;i++){
		document.write(c[i],"<br>");
	}
//-->
</script>
</body>
</html>

还没有评论.