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 tags = tipLists.collect{it.tags} render(template:'listTags',model:[tagList:tags])
tags是集合(集合)。我需要将TipTag(域类)转换为集合集tags并将其转发到模板 gsplistTags
tags
TipTag
listTags
这个怎么做?有没有可能??
我已经做到了,
List<TipTag> tagsList = tipLists.collect{it.tags} render(template:'listTags',model:[tagList:tags])
这对我有用!