【发布时间】:2017-06-14 18:41:11
【问题描述】:
我正在使用 Angular 4,我正在尝试加载 .csv 数据,例如:http://blog.sodhanalibrary.com/2016/10/read-csv-data-using-angular-2.html 但我无法加载 sample.csv 文件。我试图将此文件添加到 src/app 或 src 或 root / 但我一直有同样的问题:
GET XHR http://localhost:4200/sample.csv [HTTP/1.1 404 Not Found 6 ms]
404 - Not Found
我正在使用 ng serve 在 localhost 上运行它。
【问题讨论】:
标签: angular file csv http-status-code-404