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 });