html网页代码 值班轮流表?

html网页代码 值班轮流表?,第1张

你是要做一个周排班表把,

<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>


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/6304726.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-20
下一篇 2023-03-20

发表评论

登录后才能评论

评论列表(0条)

保存