[ActionScript3.0] 传递任意数量的参数
function setAgument(a:int,...rest):void
{
for(var i:int=0;i<rest.length;i++){
trace(rest[i]);
}
}
setAgument(5,"1","fs",3,4);//1 fs 3 4
------------------------------------------------------------------
Always put yourself in the other's shoes.If you feel that it hurts you,it probably hurts others,too.------------------------------------------------------------------