常常看到as API中的Example不带this应用,这是为什么呢? 这是因为在as中有匿名函数这一说,在匿名函数里面加this引用,指向的并不是当前类。
TypeError: Error #1006: testabc 不是函数。at com.dragon.cookbook.chapter01:ExampleApplication1_6/$construct/com.dragon.cookbook.chapter01:test()