package
{
import flash.display.Sprite;
import flash.system.Capabilities;
/**
* www.litefeel.com
* lite3@qq.com
* @author lite3
*/ public class VectorTest extends Sprite
{
private var list:Vector.<MyClass> = new Vector.<MyClass>();
public function VectorTest()
{
trace(Capabilities.version);
var n:int = 3;
while (n--)
{
//list.length++;
list.unshift(new MyClass());
trace(list);
}
}
}
}
class MyClass{}
输出:
WIN 10,0,22,87
[object MyClass]
[object MyClass],[object MyClass]
[object MyClass],[object MyClass],[object MyClass]
» 转载请注明来源:www.litefeel.com » 《Vector.unshift bug已修复》
» 本文链接地址:https://www.litefeel.com/vector-unshift-bug-fixed/
» 订阅本站:www.litefeel.com/feed/
» Host on Linode VPS
» 本文链接地址:https://www.litefeel.com/vector-unshift-bug-fixed/
» 订阅本站:www.litefeel.com/feed/
» Host on Linode VPS
This post was last modified on 2019 年 03 月 04 日 01:16