close

我在AS面板中輸入:

 

addNo(1,2);

function addNo(a,b)
{
trace(a+b);
trace(a-b);
trace(a*b);
trace(a/b);
trace(a)
trace(b)
}

 

按Ctrl+Enter後再輸出面板會出現:

3
-1
2
0.5
1
2

 

由結果可以推知,1代表a,2代表b

arrow
arrow
    文章標籤
    AS3 flash 有引數的函數
    全站熱搜

    mosquitoyo 發表在 痞客邦 留言(0) 人氣()