Groovy 闭包进阶1. 闭包关键变量2. 闭包委托策略
1. 闭包关键变量闭包自带this,owner和delegate关键字。下面写一段测试代码,分别输出闭包这3个变量的值:def testClouser = { println "testClouser this:" + this println "testClouser owner:" + owner println "testClouser delegate:"...