springboot项目中:
ERROR 3884 — [nio-8088-exec-9] org.thymeleaf.TemplateEngine : [THYMELEAF]
在html中使用Thymeleaf和layui表格渲染冲突
cols: [[
{field: 'ID', title: 'ID', width:80, sort: true, fixed: 'left'}
,{field: 'StartTime', title: '日期', width:80}
,{field: 'Abstract', title: '摘要', width:80, sort: true}
]]
这部分要把[[ ]]分开使用,[[ ]]属于Thymeleaf内联元素用法,导致无法进行layui表格渲染。
改成
cols: [
[
{field: 'ID', title: 'ID', width:80, sort: true, fixed: 'left'}
,{field: 'StartTime', title: '日期', width:80}
,{field: 'Abstract', title: '摘要', width:80, sort: true}
]
]
分开使用即可