技術發現自:
https://www.bilibili.com/video/BV14v411b7JS?p=8
摘要自CSDN帖子:
https://blog.csdn.net/senbar/article/details/1218199
主要是兩種方式:
1、第一種使用Meta標簽實現
<meta http-equiv="refresh" content="3">
content 表示刷新間隔秒數
如果content追加url地址,則表示在指定的秒數過后將跳轉到url指定的頁面中
<meta http-equiv="refresh" content="3;url=https://www.baidu.com/">
2、JS的API定時器實現
setTimeout("self.location.reload();",1000)
3、JSP內嵌控制
<% response.setHeader("refresh","1"); %>