空白,木有显示,求大神解答
面对疾风吧
面对疾风吧 2016-12-21 11:29:15
0
2
893
<!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;
 default;
 document.write(data error);
 
}
</script>
</head>
<body>
</body>
</html>
面对疾风吧
面对疾风吧

reply all(2)
数据分析师

Blank, nothing is displayed, please give me an answer - PHP Chinese website Q&A - Blank, nothing is displayed, please give me an answer - PHP Chinese website Q&A

Take a look around and learn.

巴扎黑

document.write(data error);

这句要加双引号

document.write("data error");


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template