要求进入某个页面时直接跳转到另一个页面
之前都是在 script 中添加 window.location.href = 目标地址
今天 curl http://baidu.com
后发现一段代码
<html>
<meta http-equiv="refresh" content="0;url=http://www.baidu.com/">
</html>
使用 <meta http-equiv="refresh" content="0;url=目标地址">
也可以直接重定向到另一个网址
网友评论