怎么在Flex中删除二维数组的行呢?
1个回答
展开全部
Array数组有splice方法
比如:
var vegetables:Array = new Array("spinach",
"green pepper",
"cilantro",
"onion",
"avocado");
var spliced:Array = vegetables.splice(2, 2);//删除第三、四元素
trace(vegetables); // spinach,green pepper,avocado
trace(spliced); // cilantro,onion
比如:
var vegetables:Array = new Array("spinach",
"green pepper",
"cilantro",
"onion",
"avocado");
var spliced:Array = vegetables.splice(2, 2);//删除第三、四元素
trace(vegetables); // spinach,green pepper,avocado
trace(spliced); // cilantro,onion
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询