Velocity学习笔记----foreach双重循环遍历list

#set($list1=[{"asd": "appColumnManage","dbcol_ext_template_param": [{"param_key":"location_2","param_title":"位置","param_value":"2"},{"param_key":"columnname_2","param_title":"栏目名称","param_value":"定期理财"},{"param_key":"template_2","param_title":"模板","param_value":"1"},{"param_key":"order_2_0","param_title":"顺序","param_value":"1"},{"param_key":"mainSubject_2_0","param_title":"主标题","param_value":"8.5%"},{"param_key":"subSubject_2_0","param_title":"副标题","param_value":"保理 1号优质理财"},{"param_key":"storeurl_2_0","param_title":"图片url","param_value":"https://testfastdfs.mejinrong.com:4430/group1/M00/00/3E/CgoYNlklHqGAfl8aAADIXhVUgR8663.jpg"},{"param_key":"linkUrl_2_0","param_title":"连接","param_value":"index.html"},{"param_key":"order_2_1","param_title":"顺序","param_value":"2"},{"param_key":"mainSubject_2_1","param_title":"主标题","param_value":"7.5%"},{"param_key":"subSubject_2_1","param_title":"副标题","param_value":"保理 2号优质理财"},{"param_key":"storeurl_2_1","param_title":"图片url","param_value":"https://testfastdfs.mejinrong.com:4430/group1/M00/00/3E/CgoYNlklHqGAF3IsAADIXhVUgR8676.jpg"},{"param_key":"linkUrl_2_1","param_title":"连接","param_value":"index.html"},{"param_key":"order_2_2","param_title":"顺序","param_value":"3"},{"param_key":"mainSubject_2_2","param_title":"主标题","param_value":"9.5%"},{"param_key":"subSubject_2_2","param_title":"副标题","param_value":"保理 3号优质理财"},{"param_key":"storeurl_2_2","param_title":"图片url","param_value":"https://testfastdfs.mejinrong.com:4430/group1/M00/00/3E/CgoYNlklHqGANdPAAADIXhVUgR8337.jpg"},{"param_key":"linkUrl_2_2","param_title":"连接","param_value":"index.html"}]}])


#foreach($foo in $list1)

#foreach($aoo in $foo.dbcol_ext_template_param)
$aoo.param_value
#end
#end




	


你可能感兴趣的:(Velocity)