如何在 Angular4 路由中设置静态 URL。this.router.navigate('http://xxxxxxx.com/abx/xyz') 像这样,



如何在 angular4 路由中设置静态 URL。 this.router.navigate('https://xxxxxx.com/abx/xyz') 像这样,这意味着我想从我的角度导航到另一个网站 应用。

您可以使用window.location.href = '...';

使用此代码重定向到外部链接

window.location.href = "url";

最新更新