我怎么能这个:
进入:
没有手动输入我的地址栏?一个脚本?缩短的网址?即使没有在地址栏中输入也可以这样做
您可能正在寻找JavaScript中的window.location API。 API允许您通过执行脚本来更改URL。已经有很多文章涉及这个主题。
用法示例: window.location.href = 'https://www.google.com'; // Direct to google.com
window.location.href = 'https://www.google.com'; // Direct to google.com