我听说每次参数传入/传出函数时,AS框和取消框值。
A.因此,这会更快吗?
var val = doWork(50,"hello", 2048);
function doWork (param1,param2,param3){
t.text = param2;
return param1+param3;
}
B.还是这个?
var val:Number = doWork(50,"hello", 2048);
function doWork (param1:Number,param2:String,param3:Number):Number{
t.text = param2;
return param1+param3;
}