Groovy and Grails Recipes通译之旅——面向对象的Groovy(14)

Groovy and Grails Recipes翻译之旅——面向对象的Groovy(14)!--[if !supportLists]--4.14.??????????!--

Groovy and Grails Recipes翻译之旅——面向对象的Groovy(14)

<!--[if !supportLists]-->4.14.??????????<!--[endif]-->什么是元类(Metaclass),如何使用它?

assert meta.metaClass.hasProperty(meta, "property")

1 楼 witcheryne 2010-12-14   感觉MateObject有点像 javascript 中原型的概念, 又感觉像是对 Java中Class 类的扩展...

invokeMethod 很强大..