日期:2014-05-16 浏览次数:20565 次
<script language="JavaScript" type="text/javascript">
var tempList = new Array();
tempList[0] = "a";
tempList[1] = "b";
tempList[2] = "c";
tempList[3] = "d";
var tempList2 = new Array();
tempList2[0] = "e";
tempList2[1] = "f";
tempList2[2] = "g";
tempList2[3] = "h";
var tempList3 = new Array();
tempList3 = tempList.concat(tempList2);
for(var i = 0; i < tempList.length; i++) {
document.write("tempList:" + tempList[i] + "<br>");
}
for(var i = 0; i < tempList2.length; i++) {
document.write("tempList2:" + tempList2[i] + "<br>");
}
for(var i = 0; i < tempList3.length; i++) {
document.write("tempList3:" + tempList3[i] + "<br>");
}
</script>