为了账号安全,请及时绑定邮箱和手机立即绑定

如何修复 - 如果出现意外标记 - 在此练习中

如何修复 - 如果出现意外标记 - 在此练习中

万千封印 2021-06-11 14:13:57
在这个例子中,我真的不明白我做错了什么。请参阅下面的代码。<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>
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 108 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信