在新标签页(而不是新窗口)中打开URL - Open a URL in a new tab (and not a new window)

08/04 03:56
阅读数 76

问题:

I'm trying to open a URL in a new tab, as opposed to a popup window. 我正在尝试在新选项卡(而不是弹出窗口)中打开URL

I've seen related questions where the responses would look something like: 我看过相关的问题,答案看起来像这样:

window.open(url,'_blank');
window.open(url);

But none of them worked for me, the browser still tried to open a popup window. 但是它们都不适合我,浏览器仍然尝试打开一个弹出窗口。


解决方案:

参考一: https://stackoom.com/question/Kakl/在新标签页-而不是新窗口-中打开URL
参考二: https://oldbug.net/q/Kakl/Open-a-URL-in-a-new-tab-and-not-a-new-window
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
在线直播报名
返回顶部
顶部