菜鸟Loading

菜鸟Loading

150飞吻 2017-10-30 加入 来自北海

(菜鸟)

菜鸟Loading 最近的回答

  • 2019-8-28 15:42:45layer 如何关闭页面上时间最近的弹出层中回答:

    function hideNewBox(type) {
    var doms = ['layui-layer', '.layui-layer-title', '.layui-layer-main', '.layui-layer-dialog', 'layui-layer-iframe', 'layui-layer-content', 'layui-layer-btn', 'layui-layer-close'];
    var max = 0;
    $.each($('.'+doms[0]), function(){
    console.log($(this));
    var othis = $(this);
    var is = type ? (othis.attr('type') === type) : 1;
    if(is) max=(othis.attr('times'));
    is = null;
    });
    layer.close(max);
    }
    hideNewBox();