美文网首页
thymeleaf 和layui 冲突

thymeleaf 和layui 冲突

作者: DN花花 | 来源:发表于2019-03-24 18:33 被阅读0次
  • [[]] 冲突

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'}
                      ]]
      })

相关文章

网友评论

      本文标题:thymeleaf 和layui 冲突

      本文链接:https://www.haomeiwen.com/subject/sdzuvqtx.html