AS3!INT

发布时间:2019-08-25 09:37:59编辑:auto阅读(1821)

    有必要理清一下!int的意义:

    !int 判断的是 是否为 0

    如果为 0 : 则 !int 为 true

    否则 !int 为 false

    不知道 这个 是不是 比 int != 0 的效率 要高!!!???


    扩展到Class :

    关于 null 和 underfined

    一般 !class 表示 class为null || class 为underfined

    null 表示 class 没有被实例化 , 没有被new

    underfined 在class中 和 null 相似 , 在一些 特殊的类型 , 例如 string ,表示 string 未被赋值

    一般在 Array vector object dictionary 中 用的较多.

关键字

上一篇: CCNA学习日记3

下一篇: money3