调用角度4中不包含http的URL

时间:2018-01-10 05:35:54

标签: angular

我正在使用angular 4作为我的前端。我有一个应该通过按钮调用的URL。但我的URL不包含http:// part。

这是我的网址

文件://192.0.0.70/Users/......./SupportDocs/Employee/EV201801093/EV201801093-Revenue%20Licence.pdf

以下我试过但没有工作的方式



window.location.href='';
this.router.navigateByUrl('');




0 个答案:

没有答案