<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>switch</title><script type="text/JavaScript">function a(){ var b=prompt("输入数字");switch(b){ case 1: case 2: alert("学习理念知识"); break; case 3: case 4: document.write("到企业实践"); break; case 5: document.write("总结经验"); break; case 6: case 7: document.write("周六、日休息和娱乐"); break; default:}}</script></head><body> <input type="button" name="按钮" value="点击" onclick="a()"></body></html>
添加回答
举报
0/150
提交
取消