大神帮忙看下为啥文本框输入后输出不了相关结果啊
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>switch</title>
<script type="text/JavaScript">
function MySwitch(){
var myweek =document.getElementById("div2").value;//myweek表示星期几变量
switch(myweek)
{
case 1:
case 2:
document.write("学习理念知识");
break;
case 3:
case 4:
document.write("到企业实践");
break;
case 5:
document.write("总结经验");
break;
case 6:
case 7:::
document.write("周六、日休息和娱乐");
break;
default:
alert("请输入有效数字1-7");
}
}
</script>
</head>
<body>
<input id="div2" type="text" name="tb_2">
<input type="button" value="轻点我的选择" onclick="MySwitch()">
</body>
</html>