使用 JS 跳转到指定url
1 2 3 4 5 6 7 | // This works in all browsers: window.location.href = '...'; // If you wanted to change the page without it reflecting in the browser back history, you can do: window.location.replace('...'); |
1 2 3 4 5 6 7 | // This works in all browsers: window.location.href = '...'; // If you wanted to change the page without it reflecting in the browser back history, you can do: window.location.replace('...'); |