标签:script 表示 document charset set text htm 总结 bre
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>switch</title>
<script type="text/JavaScript">
var myweek =3;//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;
}
</script>
</head>
<body>
</body>
</html>
标签:script 表示 document charset set text htm 总结 bre
原文地址:http://www.cnblogs.com/jianxingjianyuan/p/6424559.html