Cod*_*Man 5 angular-routing angular angular-router
如果使用router.navigate,如何打开新的浏览器选项卡。
this.router.navigate([]).then(result => { window.location.href = link; });
Run Code Online (Sandbox Code Playgroud)
Man*_*her 21
试试这个。
this.router.navigate([]).then(result => { window.open(link, '_blank'); });
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10076 次 |
| 最近记录: |