摘要: each方法用来循环一个集合对象,接收一个闭包来处理这个对象,但当需要终止这个循环的时候就有问题了,这个时候需要使用传统的for(x in list){if return} 的方式来做。 files.each { Attachments attachments -> attachments?.typ 阅读全文
posted @ 2022-05-30 17:11 duchaoqun 阅读(140) 评论(0) 推荐(0) 编辑