本文介绍了通过javascript新标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我正在使用这段代码

window.location.href =;

但是有问题我想要在新标签页中打开该网址

hello
I'm using this code
window.location.href = "";
but there is problem I want to open that url in new tab

推荐答案

window.open('http://stackoverflow.com/', '_blank');


这篇关于通过javascript新标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 03:59