二种新窗口打开的区别:

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);

 

相关文章:

  • 2022-12-23
  • 2022-01-12
  • 2021-12-29
  • 2021-05-24
  • 2021-11-17
猜你喜欢
  • 2021-12-19
  • 2021-11-28
  • 2021-06-24
  • 2021-12-04
  • 2021-12-19
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案