/*
shadeClose

类型:Boolean

默认:true,是否点击遮罩时关闭层
*/
var tishi = layer.open({
                    shadeClose: false
                    ,type: 2
                    ,content: '发布中...'
                });


//最后数据加载完 让 loading层消失
//layer.close(tishi);

 

//loading层
//方法一
var tishi = layer.load(1, {
    shadeClose: false,
    title: '加载中..',
    shade: [0.8,'#fff'] //0.1透明度的白色背景
});

//方法二
var tishi = layer.msg('加载中..', {
    icon: 16
    ,shade: 0.3
    ,time: false
});


//最后数据加载完 让loading层消失
layer.close(tishi);

 

方法一的效果:

layer loading层  的设置   自定义加载层,数据加载完 让loading层消失

 

 

 

 

方法二的效果:

layer loading层  的设置   自定义加载层,数据加载完 让loading层消失

 

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案