【问题标题】:How to read the content of a CSV file without uploading it in Angular 6如何读取 CSV 文件的内容而不在 Angular 6 中上传 【发布时间】:2018-10-09 04:46:11 【问题描述】: 我在使用 Angular 6 读取本地开发服务器上的 CSV 文件数据时遇到问题。我该怎么做? 【问题讨论】: 标签: csv angular6 file-read 【解决方案1】: http.get('some_folder/local_csv_file.csv') 【讨论】: 我想从你的命令中获取数据,但我不知道该怎么做。我看过这篇文章blog.sodhanalibrary.com/2016/10/…,但它工作不正常。 首先了解一下 Javascript 中的 Promise 是什么,并学习如何使用它。然后再次打开那篇文章(您使用的那篇),您可能会使其工作。