MES-Springboot/docs/FreeMarker.md

12 lines
255 B
Markdown
Raw Normal View History

2020-03-12 06:25:37 +00:00
### FreeMarker 文档
* html 或者 js 中遍历 model 中的 `List<Map<String, Object>> result`
```
<#list result as map>
<#list map?keys as key> //关键点
console.log('${key}')
console.log('${map[key]}')
</#list>
</#list>
```