本文翻译自:How do I redirect with JavaScript? [duplicate]
This question already has an answer here: 这个问题在这里已有答案:
- How do I redirect to another webpage? 如何重定向到其他网页? 58 answers 58个答案
How do you redirect to a page from another page with JavaScript? 如何使用JavaScript从另一个页面重定向到页面?
#1楼
参考: