仅供引用,我想知道除了 window.location.href
和 window.location
之外,还有什么方法可以从 html 页面重定向到另一个页面???
最佳答案
有。
<meta http-equiv="refresh" content="0; url=http://example.com/" />
记得放在<head>
里面
关于javascript - 如何从html页面重定向?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21605865/