<script language="Javascript"> <!-- var months = new Array(5); months[0] = "1月"; months[1] = "2月"; months[2] = "3月"; months[3] = "4月"; months[4] = "5月"; months[5] = "6月"; --> </script>
使用例2
<script language="Javascript"> <!-- var months = new Array("1月", "2月", "3月", "4月", "5月","6月"); --> </script>
使用例1、使用例2は同じ意味を表します。