layer最大化、最小化、还原回调方法

layer.open({
            type: 1,
             title: ‘在线调试‘,
            content: ‘这里是内容‘,
            maxmin: true, //开启最大,最小,还原按钮,只有type为1和2时,才能设置
            full: function() { //点击最大化后的回调函数
                 console.log(‘这个是点击最大化后的回调函数出发‘);
            },
             min: function() { //点击最小化后的回调函数
                  console.log(‘这个是点击最小化后的回调函数出发‘);
              },
              restore: function() { //点击还原后的回调函数
                 console.log(‘这个是点击还原后的回调函数出发‘);
             }
         })

原文地址:https://www.cnblogs.com/weimingxin/p/8662926.html