在Flex中将字符串拆分为数组

时间:2023-01-16 21:30:53

I am getting the output as 0,1,2,3. I need this to be split into array

我得到的输出为0,1,2,3。我需要将它拆分成数组

2 个解决方案

#1


var a:Array = s.split(",")

#2


In addition to Vinay's answer, here is a link to the documentation:

除了Vinay的答案,这里是文档的链接:

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/String.html#split()

#1


var a:Array = s.split(",")

#2


In addition to Vinay's answer, here is a link to the documentation:

除了Vinay的答案,这里是文档的链接:

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/String.html#split()