class A { String attToRemove int otherAtt } def a = new A() a.attToRemove = 1 println a.attToRemove A.metaClass.properties.remove(A.metaClass.properties.attToRemove) println a.attToRemove // 这里抛异常了
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....