Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在与服务器通信,它会将我的 URL 发送回外部站点。如何在新标签页中自动打开该网址?
我认为一个简单的window.open应该的伎俩。
window.open
window.open(url);
但我很确定如果你很好地问他“打开新标签 javascript”,谷歌就会知道。
希望这可以帮助