二种新窗口打开的区别:

window.open("URL",'top'); 只是表示打开这个页面,并不是打开并刷新页面;

window.location.href="URL"; 表示重新定向到新页面,同时刷新打开的这个页面;

 

window.location.href=config.default.baseUrl.dev+'/reportOne?orderCode='+this.code+'&token='+token;
window.open(config.
default.baseUrl.dev+'/reportOne?orderCode='+this.code+'&token='+token);

 

posted on 2019-04-18 17:58  菜鸟正在进化  阅读(61073)  评论(0编辑  收藏  举报