在这个例子中,我真的不明白我做错了什么。请参阅下面的代码。<script language = "javascript"> var month = new Array(12); month [0] = "Enero"; month [1] = "Febrero"; month [2] = "Marzo;"; month [3] = "Abril"; month [4] = "Mayo"; month [5] = "Junio"; month [6] = "Julio"; month [7] = "Agosto"; month [8] = "Septiembre"; month [9] = "Octubre"; month [10] = "Noviembre"; month [11] = "Diciembre"; var i = 0; do { month[i] = parseInt(prompt("Type the number of the month:")); } if (month[i]>12) { document.write("Incorrect month"); } else { document.write ("The month is :" +month+ "."); }</script>
添加回答
举报
0/150
提交
取消