1

为什么这个pop方法返回:[type Function]

var possibles:Array=new Array(1,2,3,4);
function testpop()
{
  trace( possibles.pop );
}
testpop();

此代码用动作脚本 2 编写

4

1 回答 1

1

因为它是一个函数,记得调用它:

var possibles:Array=new Array(1,2,3,4);
function testpop()
{
  trace( possibles.pop() );
}
testpop();
于 2012-10-28T10:14:06.370 回答