问题:
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
来源:oschina
链接:https://my.oschina.net/u/4432649/blog/4467452