1.通过特殊标签的跳转
<a href="https://www.baidu.com">百度</a>
2.通过location跳转页面
//1.location的href属性跳转
<span onclick="location.href='https://www.baidu.com'">百度</span>
//2.location跳转
<span onclick="location='https://www.baidu.com'">百度</span>
//3.location的replace
<span onclick="location.replace('https://www.baidu.com')">百度</span>
3.node页面重定向
res.redirect()
res.redirect([status,] path)
//参数
//status:{Number},表示要设置的HTTP状态码
//path:{String},要设置到Location头中的URL