Caused by: org.attoparser.ParseException: Could not parse as expression: "
{type: 'checkbox'}
, {field: 'id', width: 80, title: 'ID'}
, {field: 'adminName', title: '用户名', width: 120}
, {field: 'password', title: '密码', width: 120}
, {
field: 'birth', title: '生日', width: 180, templet: function (d) {
return formatTime(d.birth);
}
}
, {
field: 'gender', title: '性别', width: 80, align: "center", templet: function (d) {
return formatSex(d.gender);
}
}
, {
field: 'status', title: '状态', align: 'center', templet: function (d) {
return formatStatus(d.status)
}
}
, {
field: 'isDeleted', title: '是否删除', width: 150, align: 'center', templet: function (d) {
return formatDeleted(d.isDeleted);
}
}
, {field: 'phone', title: '电话', align: "center"}
, {fixed: 'right', title: '编辑', templet: '#barDemo', align: 'center'}
thymeleaf 不能解析当前lable格式
是因为thymeleaf中有内联表达式写法 [[${msg}]],而在layui的表格模板中也有相同的表达,所以产生异常
解决方法:
把script中的lable模板样式改为
cols: [
[
xxxx
xxxx
]
]
重新Build,问题解决!