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.
97 lines
1.8 KiB
97 lines
1.8 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>更新网页</title>
|
|
<link rel="stylesheet" type="text/css" href="../static/css/update.css"/>
|
|
<script src="../static/js/jquery-3.4.1.min.js" type="text/javascript">
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<div id="bkg">
|
|
<div>
|
|
<button type="button" onclick="updatet()">只要点我一次哦~</button>
|
|
</div>
|
|
<button type="button" onclick="update_city()">点我更新城市疫情</button>
|
|
<button type="button" onclick="update_foreign()">点我更新海外疫情</button>
|
|
<button type="button" onclick="update_rumor()">点我更新谣言信息</button>
|
|
<button type="button" onclick="update_hospital()">点我更新医院信息</button>
|
|
<div>
|
|
<button type="button" onclick="back_to_index()">点我返回主页</button></div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
function update_city(){
|
|
$.ajax({
|
|
url:'upcity',
|
|
success:function aa(a){
|
|
alert(a)
|
|
},
|
|
error:function(xhr,type,errorThrown){
|
|
|
|
}
|
|
})
|
|
}
|
|
|
|
function updatet(){
|
|
$.ajax({
|
|
url:'chushihua',
|
|
success:function aa(a){
|
|
alert(a)
|
|
},
|
|
error:function(xhr,type,errorThrown){
|
|
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
function update_foreign(){
|
|
$.ajax({
|
|
url:'upforeign',
|
|
success:function aa(a){
|
|
alert(a)
|
|
},
|
|
error:function(xhr,type,errorThrown){
|
|
|
|
}
|
|
})
|
|
}
|
|
|
|
function update_rumor(){
|
|
$.ajax({
|
|
url:'uprumor',
|
|
success:function aa(a){
|
|
alert(a)
|
|
},
|
|
error:function(xhr,type,errorThrown){
|
|
|
|
}
|
|
})
|
|
}
|
|
|
|
function update_hospital(){
|
|
$.ajax({
|
|
url:'uphospital',
|
|
success:function aa(a){
|
|
alert(a)
|
|
},
|
|
error:function(xhr,type,errorThrown){
|
|
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
function back_to_index(){
|
|
window.location.href="index"
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|