【发布时间】:2018-09-24 05:43:35
【问题描述】:
如何使用窗口从该位置打开excel文件?
constructor( private fb: FormBuilder, private http: Http, private router: Router,private window:Window) { }
window.open(this.excelURL + "report/" + this.getexportlist.data.data, '_blank');
它显示了下面提到的错误:
ERROR 错误:未捕获(承诺中):错误:StaticInjectorError(AppModule)[CouponUsageReportComponent -> Window]: StaticInjectorError(Platform: core)[CouponUsageReportComponent -> Window]: NullInjectorError: 没有 Window 的提供者!
【问题讨论】:
标签: angular typescript2.0