javascript創建引用數組代碼:
<html>
<body>
<script type="text/javascript">
var mycars = new Array()
mycars[0] = "HoverTree"
mycars[1] = "YesTop"
mycars[2] = "EasySector"
for (i=0;i<mycars.length;i++)
{
document.write(mycars[i] + "<br />")
}
</script>
</body>
</html>
效果: