是否可以检查一个类以查看它是否有方法?甚至是特定的属性(property)
最佳答案
var target:Object;// = some object
var name:String;// = some name
if(name in target){
// if property/method exists
}else{
// if property/method not exists
}
关于flash - 检查一个类是否有方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2170544/