<script>
var work = [["周一","张三","电话1"],["周二","张三","电话2"],["周三","张三","电话3"],["周四","张三","电话4"],["周五","张三","电话5"],["周六","张三","电话6"],["周七","张三","电话7"]]
var week = new Date().getDay()//取星期几
document.write("今天" + work[week-1][0]+","+work[week-1][1]+" 值班,电话:"+work[week-1][2])
</script>
<html><head>
<title>学生信息</title>
</head>
<body>
<table width="350px" border="1px">
<thead style="text-align:center">
<td>学生学号</td>
<td>学生姓名</td>
<td>身份z号码</td>
<td>学生性别</td>
</thead>
<tbody>
<tr>
<td>01</td>
<td>张三</td>
<td>51000000000000</td>
<td>男</td>
</tr>
<tr>
<td>02</td>
<td>李四</td>
<td>51000000000001</td>
<td>女</td>
</tr>
<tr>
<td>03</td>
<td>王五</td>
<td>51000000000003</td>
<td>男</td>
</tr>
</tbody>
</table>
</body>
</html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)