在工作中有些网站需要添加特定的地址才能访问,为避免出现打不开的情况可以新建一个HTML进行跳转,代码如下
<meta http-equiv="refresh" content="2;url=https://172.19.248.72/SRRC_CQ/portal/workArea/commonportal">
代码说明:在content=2为跳转时间单位秒,URL=为要跳转的网址
以下是我用的跳转代码
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="refresh" content="2;url=https://172.19.248.72/SRRC_CQ/portal/workArea/commonportal"> <title>文档标题</title> </head> <body> <h1>请稍候,正在跳转中</h1> </body> </html>
还没有评论,来说两句吧...