codice:
var stringa="1,2,3,4,5,6";
var vettore=stringa.split(',');
alert("Le cifre sono "+vettore.length);
ciao