layui的表格第一次渲染页面时,因为没有加载完就跳转到其他页面,导致表格缩起来

var dongTaiWidth = $(document).width()/1.09;
var tableIns = table.render({
                    elem: '#myProjectTable0',
                    width: dongTaiWidth,
                    height: 'full',
                    title: '我的项目',
                    id: 'idMyProjectTable1',
                    method: 'get',url: "table.json",
                    page: true,
                    limit: 10,
                    limits: [10, 20, 50, 100],
                    even: true,
                    request: {
                        pageName: 'page',
                        limitName: 'limit'
                    },
                    done: function(res){
                        
                    },
                    cols: colsList
                });

 

posted @ 2022-08-18 16:11  make-up-xx  阅读(213)  评论(0编辑  收藏  举报