thymeleaf 和layui 冲突

2019-03-24  本文已影响0人  DN花花

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'}
                      ]]
      })
上一篇 下一篇

猜你喜欢

热点阅读