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 + ',' + arr[i];
}
str=str.substring(1)
return str;
... but it feels a bit untidy.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…