thymeleaf 和layui 冲突

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', '10%',  align: 'center'}
                      ]]
      })


作者:DN花花
链接:https://www.jianshu.com/p/a212913afb71
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
原文地址:https://www.cnblogs.com/w123w/p/13656152.html