首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网络技术 > 网络基础 >

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

2012-11-12 
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 很强大..

热点排行