打字稿解析CSV文件

时间:2016-09-19 05:31:42

标签: angular csv parsing typescript delimiter

我正在使用Angular,我需要解析一个CSV文件,并在TypeScript中将每个字段写入数据库。在我们使用的文件中,存在分隔和非分隔字段的混合(因此我想使用"作为分隔符。)

我的文件的一个示例是:

LastName,FirstName,Mobile,Email,"Job Title"
a,test,78787888,a@yahoo.com,Developer
gh,mary,"0506 444 435",mar@gmail.com,Developer
Zu,Jg,067889990,jg@yahoo.com,"Team Leader"

我在JavaScript中找到了许多用于CSV解析的示例,但它们都不适用于我的数据。

0 个答案:

没有答案
相关问题