<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>switch</title><script type="text/JavaScript">function works(){var weekday=new Date();var myweek=weekday.getDay();//document.write(myweek);//测试myweek值switch(myweek){ case 0: case 1: document.write("学习理念知识"); break; case 2: case 3: document.write("到企业实践"); break; case 4: document.write("总结经验"); break; case 5: case 6: document.write("周六、日休息和娱乐"); break; default;}}</script></head><body><input type="button" value="今天干吗?" onclick="works()"></body></html>
添加回答
举报
0/150
提交
取消