layui table中固定表头,弹框缩放之后,表头对不齐问题
- 2020 年 11 月 4 日
- 笔记
新手一枚 直接上解决方案
在layui弹出成功后再渲染表格数据
具体操作就是在layer弹层完成之后的回调中渲染表格数据
layer.open({
type: 1,
content: $(“id”),
success: function(layero, index){
table.render({
//一些代码
})
}
})
新手一枚 直接上解决方案
在layui弹出成功后再渲染表格数据
具体操作就是在layer弹层完成之后的回调中渲染表格数据
layer.open({
type: 1,
content: $(“id”),
success: function(layero, index){
table.render({
//一些代码
})
}
})