1:
var el = document.createElement("a");
document.body.appendChild(el);
el.href = urlStr; //url 是你得到的连接
el.target = '_blank'; //指定在新窗口打开
el.click();
document.body.removeChild(el);
2:
var a = $("<a href='#' target='_blank' ></a>").get(0);
var e=document.createEvent('MouseEvents');
e.initEvent('click',true,true);
a.dispatchEvent(e);
3:
window.open("http://www.baidu.com");
4:
window.location.href