as3 字符串 根据分隔符分隔数据

var goodsStr:String = "ssss1,ssss2";

var goodArr:Array = new Array();

goodArr = goodsStr.split(",",goodsStr.length);

for(var i:int = 0;i<goodArr.length;i++){
  trace(goodArr[i]);
}

posted @ 2015-09-15 18:08  regalys168  阅读(468)  评论(0编辑  收藏  举报