I have a comma separated string that I want to convert into an array, so I can loop through it.
(我有一个逗号分隔的字符串,我想将其转换成数组,因此可以循环遍历它。)
Is there anything built-in to do this?
(有内置的功能吗?)
For eg I have this string
(例如,我有这个字符串)
var str = "January,February,March,April,May,June,July,August,September,October,November,December";
now I want to split this by the comma, and then store it in an array.
(现在我想用逗号将其分割,然后将其存储在数组中。)
ask by Blankman translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…