flex determines the type of the object

Before judging the type of the flex object, the first step is to obtain the object type. The ways to obtain it are as follows:

mx.utils.NameUtil.getUnqualifiedClassName(object:Object):String //Get the object type name

flash.utils.getQualifiedClassName(value:*):String //Get the full name of the object type

 

Comparison method: I use instanceof and return true/false

Also refer to:

flex gets the object type and instantiates the object by the class name

Flex's four ways of judging object types as instanceof is typeof comparison

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325019799&siteId=291194637