You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
teamwk123/views/zuozhan2.ejs

25 lines
846 B

1 month ago
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="/stylesheets/main.css">
<link rel="stylesheet" type="text/css" href="/stylesheets/table.css">
<title><%= title %></title>
</head>
<body>
<h2><%= message %></h2>
<br /><br /><br /><br />
<h2>作战员2回复作战信息</h2>
<form action="/sendit2" method="post">
作战内容:<input type="text" name="message"/><br></br>
<input type="submit" value="回复">
</form>
<script>
setInterval(function() {//setInterval() 方法用于设置定时器,它会按照指定的时间周期反复执行一个函数
window.location.reload(true);//window.location.reload(true)每隔 10 秒自动刷新页面
}, 10000);
</script>
</body>
</html>