layui搜索时显示加载层,有数据后关闭加载层

function ser_on(){
    var index = layer.load(1, {
            shade: [0.1,'#fff'] //0.1透明度的白色背景
        });
     TB.reload({
        ...
        done: function (res) {
                layer.close(layer.index);//关闭加载层
            },
        ...
    })
}

猜你喜欢

转载自blog.csdn.net/weixin_44285250/article/details/86217378