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.
grails のような名前のパラメーターを取得するには? すなわち。id_1、id_2 . . . など groovy や grails に params.['id_*'] のようなものはありますか?
たとえば、ID のリストを取得するには、次のようにし"id_"ます。
"id_"
def map=[id_1:1,id_2:2,max:1,offset:2] def fparms=map.findAll{it.key.startsWith("id_")} assert fparms==[id_1:1, id_2:2]