求问!为什么输出都是default的结果啊!!!
<html>
<head><meta charset="utf-8">
</head>
<body >
今天是星期<input id="input1">(请输入数字)
<button onclick="s()">提交</button>
<script type="text/JavaScript">
var myweek=document.getElementById("input1");
function s(){
switch(myweek)
{
case "1":
case "2":
document.write("学习理念知识");
break;
case "3":
case "4":
document.write("到企业实践");
break;
case "5":
document.write("总结经验");
case "6":
case "7":
document.write("周六、日休息和娱乐");
break;
default:
document.write("你看看你输入了些啥");
break;
}
}
</script>
</body></html>