var load = layer.msg('加载中...', {
icon: 16,
shade: [0.1, '#fff'],
time: false //取消自动关闭
});
layui.table.render({
elem: "#table",
url: "url",
width: 571,
cols: [[
{ field: 'xh', title: '序号', width: 60 },
]],
page: true,
done: function (res) {
console.log("数据加载完成");
layer.close(load);
}
});
layui加载动态表格数据之前显示loading,加载完后关闭loading
最新推荐文章于 2024-05-31 17:16:09 发布