filling in (…rest) parameters with an array?

后端 未结 2 591
死守一世寂寞
死守一世寂寞 2021-01-12 01:05

Some as3 functions handle overloading by allowing for an arbitrary number of parameters using the convention:

public function doSomething( ... rest ):void;
<         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-12 01:26

    Here is a very good tip to pass the rest parameter between functions.

提交回复
热议问题