版本layui-v2.2.6 1、layui table首次加载没有显示loading的加载动画 方法:在lay > modules 下的 table.js 文件中的下面位置添加js代码 if(n.url&&n.loading){i=i||a.loading();} 2、请求错误时,执行错误的回调函数 方法:在lay > modules 下的 table.js 文件中的下面位置添加js代码 n.error && n.error(e); 其中 error与done是同一个对象的属性(图中高亮处)