首页 > 其他 > 详细

thymeleaf 和layui 冲突

时间:2020-09-12 11:03:09      阅读:71      评论:0      收藏: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‘}
                      ]]
      })


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

thymeleaf 和layui 冲突

原文:https://www.cnblogs.com/w123w/p/13656152.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!