最近使用layui table进行异步获取数据并填充的时候,控制台打印出数据长度为0,但是其中还有数据,网上找了很多办法,下边是我最后使用的. 一般,render渲染表格是独立的书写格式,但是我在做数据统计的时候,需要展示表格和图表,两个数据是一起获取到的,如何再填充到table中去呢? 下边列出实现代码: //定义 var tempData = {}; //补充搜素条件 tempData.customerId = customerId; tempData.year = year; tempDa