-
[[]] 沖突
thymeleaf 和layui表格都對[[]] 有定義,thymeleaf定義比較嚴格,layui比較寬松,html 頁面中把[ []] 加空格或則換行就可以解決
把[[]] 中間加一個空格 ,寫成這樣 [ []]
table.render({
elem: '#table'
,url: '/pic/getList'
,id:'layTable',
height: 'full-340',
limit:3,
limits:[3,5,10],
where: {"uid":uid},
page: true //開啟分頁
,cols: [ [
{ title: '序號', type:'numbers', width:'10%', align: 'center'}
]]
})