关于在class里定义Array和Object

      Actionscript 2004-7-18 14:5
在class里定义Array和Object会有两种不同的结果:
private var arr:Array=[];

在构造函数里初始化
private var arr:Array;
function 构造器{
arr=[];
}
前者在用一时间轴里new出来n个以后arr指向的是同一个,后者正常。
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}