cut string and assign into array in javascript -


Do anyone know how I can cut a string and then allocate in an array with Javascript? Example:

var string = "15; 24; 67; 34; 56";

I hope TP will cut this string in the format below and assign it to the array:

a [0] = 15a [1] = 24a [2] = 67a [3] = 34 a [3] = 56

var a = string Split (';');


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -