首页 > 其他分享 >layer.load 自定义加载

layer.load 自定义加载

时间:2023-05-11 11:45:58浏览次数:40  
标签:load function layer 自定义 content 加载

//layui load 默认加载
function layerload() {
    layer.load(0, {
        content: '正在努力加载中,请稍等',
        shade: [0.5, '#000'], //0.4为透明度 ,#000 为颜色
        offset: ['45%', '40%'],//位置
        success: function (layero) {
            layero.find('.layui-layer-content').css({
                'padding-left': '60px',//
                'padding-top': '5px',//
                'color': 'white',//
                'font-size': '18px',//
                'width': '300px'//文字显示的宽度
            });
        }
    });
    setTimeout(function () {
        layer.closeAll('loading');
    }, 3500);
}

 

标签:load,function,layer,自定义,content,加载
From: https://www.cnblogs.com/gzb1/p/17390593.html

相关文章

  • c++自定义工具类的定义和使用
    classlog_work{private:intlog_id_=1;intlog_level_;qnx_slog2()=default;virtual~qnx_slog2(){uninit();}public:inlinestaticlog_work&get_log(){staticqnx_slog2slog2_instance;returnslog2_instance;}......
  • c++模版多参数的递归用法--自定义log
    #include<iostream>#include<sstream>#include<string>#include<tuple>#include<type_traits>template<typenameT>voidprint_impl(std::ostringstream&os,constchar*format,T&&arg){while(*form......
  • 自定义信息提示框dialog.js
    varowner;functiongetOwner(){ if(owner) returnowner; varowner=window; try{ if(top.document.domain==window.document.domain){ if(top.length>1) owner2=top[0]; else owner=top; } }catch(ex){ while(owner.p......
  • layui内置loading等待加载
    点击功能按钮之后:varloading=layer.load(2,{shade:false,time:3*1000});//参数:icon:0,1,2loading风格//shade:false是否有遮罩,true表示有遮罩//time:3*1000设定最长等待时间,设置时间之后,loading会在时间到之后自动关闭关......
  • uniapp自定义开发一个文本输入框
    开发component中的一个input标签一、在原来的模块上面创建一个新的类TestComponent1.新建TestComponent2.配置json文件二、uniapp准备工作1.在uniapp中写一下刚刚创建的输入框2.打包导出资源3.资源替换复制刚刚生成的本地资源文件夹到AndroidStudio项目中......
  • Python打包exe,执行报player组件缺失“File "plyer\facades\notification.py", line
    之前的打包方式:pyinstaller--onefile--windowedpythonfilename.py执行exe报错:修改打包命令:pyinstaller--onefile--windowed--hidden-importplyer.platforms.win.notificationpythonfilename.py执行新的exe,正常弹窗,错误消失,win10toast组件实现类似功能,打包也......
  • wordpress 为自定义类型文章新增自定义字段
    wordpress强大之处在于有很强的可自定义性,使得插件、主题的开发变得及其便利。就拿我们今天要说的自定义文章添加自定义字段来说,就很便捷。        比如我们要录入一个客户信息到wordpress中,那么需要的字段可不仅仅是什么标题、内容、摘要这么简单了,我们可能需要录入客户......
  • Eclipse won't launch because `reload maven project has encountered a proble m`
    关于eclipse因为maven无法启动的问题,参考以下两个网页http://www.91linux.com/html/2016/eclipse_1018/15540.htmlhttp://stackoverflow.com/questions/31080665/eclipse-wont-launch-because-reload-maven-project-has-encountered-a-proble-m不需要删除整个.metadata如果删除......
  • springboot+Prometheus+grafana 实现自定义监控(请求数、响应时间、JVM性能)
    自定义监控1.SpringBoot工程集成Micrometer1.1引入依赖1.2配置1.3监控jvm信息1.4创建自定义监控1.5添加具体业务代码监控2.集成Prometheus2.1安装2.2集成配置3.使用GrafanaDashboard展示监控项3.1安装grafana3.2配置prometheus数据源3.3增加jvm面板3.4配置业务接口监控面板......
  • 如何通过appuploader把ipa文件上传到App Store教程步骤​
    如何通过appuploader把ipa文件上传到AppStore教程步骤​iOSAPP上架AppStore其中一个步骤就是要把ipa文件上传到AppStore!​下面进行步骤介绍!​利用Appuploader这个软件,可以在Windows、Linux或Mac系统中申请ios和上传IPA到AppStoreConnect。​非常的方便,没有Mac也......