layui的loading加载中
var load = layer.load(1, {
content: '数据加载中',
shade: [0.4, '#393D49'],
// time: 10 * 1000,
success: function(layero) {
layero.css('padding-left', '30px');
layero.find('.layui-layer-content').css({
'padding-top': '40px',
'width': '70px',
'color':'white',
'background-position-x': '16px'
});
}
})
关闭:layer.close(load);
参考文档:https://blog.csdn.net/caidingnu/article/details/88783194(感谢分享)