使用javascript在csv文件中拆分文本

时间:2017-12-28 01:26:36

标签: javascript

我有一个包含这样的样本数据的csv文件

153,"Doe, John","","RBG","",10,"","","10/15/2017","Sunday","RESTDAY"," ",10,"","","","","","",0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,"",0.00,0.00,""

当我在这样的javascript中使用split()函数拆分它时。 csvdata.split(",")它运行良好但是当全名用“Doe,John”这样的逗号分隔时遇到了问题。谁能帮我?提前致谢

0 个答案:

没有答案