How can I parse a CSV string with JavaScript, which contains comma in data?

前端 未结 17 867
不知归路
不知归路 2020-11-22 01:52

I have the following type of string

var string = "\'string, duppi, du\', 23, lala"

I want to split the string into an array on each

17条回答
  •  囚心锁ツ
    2020-11-22 02:24

    You can use papaparse.js like the example below:

    
    
    
        
            CSV
        
    
        
            
            
            

    The Result will be in the Console.

    Don't forget to include papaparse.js in the same folder.

提交回复
热议问题