最好在我的costructor中使用if(source == null),仅在提供了costructor参数时运行代码?
package dataModels {
import mx.collections.ArrayCollection;
import dataModels.*;
[Bindable]
public class TagsListModel extends ArrayCollection{
public function TagsListModel( source:Array=null ) {
if (source!=null) {
super(source);
}
}
}
}
感谢
答案 0 :(得分:0)
我不知道这是不是好习惯,但是如果它适合你,那就很好。