Create comma-delimited string

前端 未结 5 806
不思量自难忘°
不思量自难忘° 2021-01-01 09:06

I\'m looking to find a neat way to create a comma-delimited string from an array. This is how I\'m doing it now...

for(i=0;i<10;i++)
{
   str = str + \',\         


        
5条回答
  •  一向
    一向 (楼主)
    2021-01-01 09:34

    I think there is something like array.join(',') where array is your array variable instance.

提交回复
热议问题