-- 報錯如下
processing template "equipName/equipNameList": Could not parse as expression: "
{checkbox: true, fixed: true}
,{field:'id', title: 'ID', sort: true, fixed: true}
,{field:'equipName', title: '仪器名称', sort: true, fixed: true}
,{fixed: 'right', width: 320, align:'center', toolbar: '#barDemo'}
" (template: "equipName/equipNameList" - line 64, col 22)
org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: "
{checkbox: true, fixed: true}
,{field:'id', title: 'ID', sort: true, fixed: true}
,{field:'equipName', title: '仪器名称', sort: true, fixed: true}
,{fixed: 'right', width: 320, align:'center', toolbar: '#barDemo'}
" (template: "equipName/equipNameList" - line 64, col 22)
解決方法1
將下圖中的[[ ]]改為
[
[
]
]
解決方法2
在scrip中,添加 th:inline=none 屬性