?? 4.1.4.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<script language="JavaScript" type="text/javascript">
<!--
var month=prompt("請輸入月份:",1);
month=parseInt(month); //非必須:將月份轉(zhuǎn)換為數(shù)字類型
switch(month){
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
alert(month+"月有31天");
break;
case 4:
case 6:
case 9:
case 11:
alert(month+"月有30天");
break;
case 2:
alert(month+"月有28天");
break;
default:
alert("error");
break;
}
//-->
</script>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -