1.使用window.open(url,’_blank’)
需要分开使用:
let newWindow=window.open('_blank');
newWindow.location=url;
2.location.href在ie8下无效
3.window.open(’_self’)在ie8下无效
只能先
let newWin=window.open();
newWin.location=url;
之后,再关闭原窗口
window.close();
1.使用window.open(url,’_blank’)
需要分开使用:
let newWindow=window.open('_blank');
newWindow.location=url;
2.location.href在ie8下无效
3.window.open(’_self’)在ie8下无效
只能先
let newWin=window.open();
newWin.location=url;
之后,再关闭原窗口
window.close();