<script type="text/javascript">
var myweek=prompt("请输入周记几:","1");//prompt返回值是字符串类型,所以后面的1要加上引号
switch(myweek)
{
case "1": //因为prompt返回值类型是字符串类型,此处的1也要加引号与之匹配
case "2":
document.write("参观考察");
break;
case "3":
case "4":
document.write("邀请客户");
break;
case "5":
case "6":
document.write("公司工作");
break;
case "7":
document.write("休息");
break;
default:
document.write("输入错误了呢!");
}
</script>
玉林峰
SimpleDog
茫海
nickylau82
恒爷
相关分类