Flash / Flex / ActionScript/Array/delete
Версия от 09:19, 26 мая 2010; (обсуждение)
Removing Elements with the delete Operator
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var list = ["a", "b", "c"];
trace(list.length); // 3
delete list[2];
trace(list.length); // 3
}
}
}