Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
def a = { b } def b = { logger.debug("call ok") Template }
当我调用方法时a,我看到了记录器输出(b所谓的),但它返回a. 为什么?我希望它返回方法模板b
a
b
模板是指“渲染”命令吗?如果是这样,它应该工作。如果没有,请编辑问题并发布确切的代码。